zhuzhurk commented on a change in pull request #10071: [FLINK-14371][runtime, 
tests] Enable 
ClassLoaderITCase/WindowCheckpointingITCase/EventTimeWindowCheckpointingITCase 
for NG scheduling
URL: https://github.com/apache/flink/pull/10071#discussion_r342364335
 
 

 ##########
 File path: 
flink-tests/src/test/java/org/apache/flink/test/classloading/ClassLoaderITCase.java
 ##########
 @@ -282,10 +278,12 @@ public void 
testCheckpointingCustomKvStateJobWithCustomClassLoader() throws IOEx
                        Collections.singleton(new 
Path(CHECKPOINTING_CUSTOM_KV_STATE_JAR_PATH)),
                        Collections.emptyList());
 
-               expectedException.expectCause(
-                       Matchers.hasProperty("cause", 
isA(SuccessException.class)));
-
-               program.invokeInteractiveModeForExecution();
+               try {
+                       program.invokeInteractiveModeForExecution();
+                       fail("exception should happen");
+               } catch (Exception e) {
 
 Review comment:
   Exception type is updated. 
   This assertion relaxing should not be a problem, since this case to verify 
that task in the job can start and restore state successfully, otherwise the 
`SuccessException` will not be thrown.

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


With regards,
Apache Git Services

Reply via email to