Skip to content

Commit

Permalink
add showProgress with jobInfo Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuan1223 committed Oct 17, 2023
1 parent d4434a0 commit 0c9ac27
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ class SQLOperationListenerSuite extends WithSparkSQLEngine with HiveJDBCTestHelp
eventually(timeout(90.seconds), interval(500.milliseconds)) {
val resultsResp = client.FetchResults(fetchResultsReq)
val logs = resultsResp.getResults.getColumns.get(0).getStringVal.getValues.asScala
assert(logs.exists(_.matches(".*\\[Job .* Stages\\] \\[Stage .*\\]")))
assert(logs.exists(_.contains("started with 2 stages")))
assert(logs.exists(_.contains("started with 1 tasks")))
assert(logs.exists(_.contains("started with 3 tasks")))
assert(logs.exists(_.contains("Finished stage:")))
assert(logs.exists(_.contains(s"Job ${0 + initJobId} succeeded")))
}
}
}
Expand Down

0 comments on commit 0c9ac27

Please sign in to comment.