link3280 commented on code in PR #21292:
URL: https://github.com/apache/flink/pull/21292#discussion_r1051316673


##########
flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestUtils.java:
##########
@@ -181,4 +186,24 @@ public static void waitUntilJobCanceled(JobID jobId, 
ClusterClient<?> client)
             Thread.sleep(50);
         }
     }
+
+    /**
+     * Wait util at least one job turns into RUNNING status in the cluster. 
Applicable for single
+     * job scenarios.
+     *
+     * @param client ClusterClient which could be {@link
+     *     org.apache.flink.test.junit5.InjectClusterClient}.
+     */
+    public static void waitUntilJobIsRunning(ClusterClient<?> client) throws 
Exception {
+        Collection<JobStatusMessage> statusMessages = client.listJobs().get();

Review Comment:
   That's an obvious bug. Sorry for that.



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to