RocMarshal commented on code in PR #21999: URL: https://github.com/apache/flink/pull/21999#discussion_r1116556097
########## flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java: ########## @@ -1121,13 +1117,14 @@ private void testFailToConfirmCheckpointMessage(Consumer<StreamTask<?, ?>> consu StreamTaskMailboxTestHarness<Integer> harness = builder.setupOutputForSingletonOperatorChain(streamMap).build(); - try { - consumer.accept(harness.streamTask); - harness.streamTask.runMailboxLoop(); - fail(); - } catch (ExpectedTestException expected) { - // expected exceptionestProcessWithUnAvailableInput - } + // expected exceptionestProcessWithUnAvailableInput + assertThatThrownBy( + () -> { + consumer.accept(harness.streamTask); + harness.streamTask.runMailboxLoop(); + fail(null); Review Comment: It's from the old line. And I removed it. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org