12rcu commented on code in PR #4990:
URL: https://github.com/apache/ignite-3/pull/4990#discussion_r1903340941


##########
modules/raft/src/integrationTest/java/org/apache/ignite/raft/jraft/core/ItNodeTest.java:
##########
@@ -2726,8 +2727,7 @@ public void testFollowerStartStopFollowing() throws 
Exception {
         List<Node> firstFollowers = cluster.getFollowers();
         assertEquals(4, firstFollowers.size());
         for (Node node : firstFollowers) {
-            assertTrue(
-                waitForCondition(() -> ((MockStateMachine) 
node.getOptions().getFsm()).getOnStartFollowingTimes() == 1, 5_000));

Review Comment:
   ```suggestion
               assertTimeoutPreemptively(Duration.ofMillis(5_000), () -> {
                   assertEquals(1, ((MockStateMachine) 
node.getOptions().getFsm()).getOnStartFollowingTimes());
               });
   ```



-- 
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: notifications-unsubscr...@ignite.apache.org

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

Reply via email to