Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
godfreyhe committed Jun 11, 2020
1 parent 9e43454 commit e32a32b
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -119,16 +119,13 @@ class TableITCase(tableEnvName: String, isStreaming: Boolean) extends TestLogger
assertEquals(ResultKind.SUCCESS_WITH_CONTENT, tableResult.getResultKind)
val it = tableResult.collect()
it.close()
val jobStatus = try {
Some(tableResult.getJobClient.get().getJobStatus.get())
try {
assertNotEquals(JobStatus.RUNNING, tableResult.getJobClient.get().getJobStatus.get())
} catch {
// ignore the exception,
// because the MiniCluster maybe already been shut down when getting job status
case _: Throwable => None
}
if (jobStatus.isDefined) {
assertNotEquals(JobStatus.RUNNING, jobStatus.get)
}
}

@Test
Expand Down

0 comments on commit e32a32b

Please sign in to comment.