wangzzu commented on code in PR #23244:
URL: https://github.com/apache/flink/pull/23244#discussion_r1300834163
##########
flink-runtime/src/test/java/org/apache/flink/runtime/minicluster/MiniClusterITCase.java:
##########
@@ -422,14 +425,14 @@ public void
testJobWithAnOccasionallyFailingSenderVertex() throws Exception {
fail("Job should fail.");
} catch (JobExecutionException e) {
- assertTrue(findThrowable(e, Exception.class).isPresent());
- assertTrue(findThrowableWithMessage(e, "Test
exception").isPresent());
+ assertThat(findThrowable(e, Exception.class)).isPresent();
+ assertThat(findThrowableWithMessage(e, "Test
exception")).isPresent();
Review Comment:
fixed
##########
flink-runtime/src/test/java/org/apache/flink/runtime/minicluster/MiniClusterITCase.java:
##########
@@ -460,14 +463,14 @@ public void testJobWithAFailingReceiverVertex() throws
Exception {
fail("Job should fail.");
} catch (JobExecutionException e) {
- assertTrue(findThrowable(e, Exception.class).isPresent());
- assertTrue(findThrowableWithMessage(e, "Test
exception").isPresent());
+ assertThat(findThrowable(e, Exception.class)).isPresent();
+ assertThat(findThrowableWithMessage(e, "Test
exception")).isPresent();
Review Comment:
fixed
--
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]