tillrohrmann commented on a change in pull request #7613: 
[FLINK-11370][test]Check and port ZooKeeperLeaderElectionITCase to ne…
URL: https://github.com/apache/flink/pull/7613#discussion_r252712333
 
 

 ##########
 File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/leaderelection/LeaderChangeClusterComponentsTest.java
 ##########
 @@ -141,6 +142,16 @@ public void testReelectionOfJobMaster() throws Exception {
                assertThat(jobResult.isSuccess(), is(true));
        }
 
+       @Test
+       public void testTaskManagerRegisterReelectionOfResourceManager() throws 
Exception {
+
+               assertTrue(miniCluster.requestTaskManagerInfo().get().size() == 
NUM_TMS);
 
 Review comment:
   I would suggest to use `assertThat` and Hamcrest matchers for testing 
because they give better failure messages.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to