You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/07/09 06:30:55 UTC

[GitHub] [flink] reswqa commented on a diff in pull request #20153: [FLINK-28144][runtime] Let JobMaster support blocklist.

reswqa commented on code in PR #20153:
URL: https://github.com/apache/flink/pull/20153#discussion_r917229294


##########
flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/JobMasterTest.java:
##########
@@ -1384,8 +1374,9 @@ public void testRequestPartitionState() throws Exception {
                 fail("Expected failure.");
             } catch (ExecutionException e) {
                 assertThat(
-                        ExceptionUtils.findThrowable(e, IllegalArgumentException.class).isPresent(),
-                        is(true));
+                                ExceptionUtils.findThrowable(e, IllegalArgumentException.class)

Review Comment:
   I think this code block can replaced by 
   ```
   Assertions.assertThatThrownBy(() -> unknownPartitionStateFuture.get())
                       .satisfies(FlinkAssertions.anyCauseMatches(IllegalArgumentException.class));
   ```



-- 
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-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org