Skip to content

Commit

Permalink
[Java] Improve assertion message.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Mar 22, 2024
1 parent 1c72ef6 commit 37a8dd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,7 @@ void shouldCatchupAndJoinAsFollowerWhileSendingBigMessages()
cluster.awaitServicesMessageCount(messageCount);
assertEquals(1, leader.consensusModule().context().electionCounter().get());
assertEquals(1, follower1.consensusModule().context().electionCounter().get());
assertEquals(1, follower2.consensusModule().context().electionCounter().get());
assertEquals(1, follower2.consensusModule().context().electionCounter().get(), "election loop detected");
}

private void shouldCatchUpAfterFollowerMissesMessage(final String message)
Expand Down

0 comments on commit 37a8dd2

Please sign in to comment.