JingsongLi commented on a change in pull request #12595:
URL: https://github.com/apache/flink/pull/12595#discussion_r438615199



##########
File path: 
flink-table/flink-table-planner-blink/src/test/scala/org/apache/flink/table/api/TableITCase.scala
##########
@@ -119,7 +119,13 @@ class TableITCase(tableEnvName: String, isStreaming: 
Boolean) extends TestLogger
     assertEquals(ResultKind.SUCCESS_WITH_CONTENT, tableResult.getResultKind)
     val it = tableResult.collect()
     it.close()
-    assertEquals(JobStatus.CANCELED, 
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

Review comment:
       This also catch exception of `assertNotEquals` and makes 
`assertNotEquals` useless.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to