reswqa commented on code in PR #22632:
URL: https://github.com/apache/flink/pull/22632#discussion_r1204306753
##########
flink-tests/src/test/java/org/apache/flink/test/recovery/ProcessFailureCancelingITCase.java:
##########
@@ -214,12 +217,14 @@ public Long map(Long value) throws Exception {
programThread.join(TIMEOUT.toMillis());
- assertFalse("The program did not cancel in time",
programThread.isAlive());
+ assertThat(programThread.isAlive())
+ .withFailMessage("The program did not cancel in time")
+ .isFalse();
- Throwable error = programException.get();
- assertNotNull("The program did not fail properly", error);
-
- assertTrue(error instanceof ProgramInvocationException);
+ assertThat(programException.get())
+ .withFailMessage("The program did not fail properly")
+ .isNotNull()
Review Comment:
👍
--
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]