yanghua commented on a change in pull request #6490: [FLINK-10056] [test] Add 
JobMasterTest#testRequestNextInputSplit
URL: https://github.com/apache/flink/pull/6490#discussion_r207707131
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/ExecutionGraphTestUtils.java
 ##########
 @@ -144,7 +146,48 @@ public static void waitUntilExecutionState(Execution 
execution, ExecutionState s
                }
 
                if (System.nanoTime() >= deadline) {
-                       throw new TimeoutException();
+                       throw new TimeoutException(
+                               "The execution did not reach state " + state + 
" in time. " +
+                               "Current status is " + execution.getState() + 
'.');
 
 Review comment:
   please use unified "" not ''. what's more, use string format looks better to 
me

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to