Skip to content

Commit

Permalink
test: fix thread problem in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Jan 8, 2025
1 parent 1b40842 commit fd2a4c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ void test() throws Exception {
CompletableFuture<Void> f = leader.group.transferLeadership(newLeader.nodeId, 2000);
f.get(5, TimeUnit.SECONDS);

assertEquals(RaftRole.follower, leader.group.getGroupComponents().getRaftStatus().getRole());
assertEquals(RaftRole.leader, newLeader.group.getGroupComponents().getRaftStatus().getRole());
assertEquals(RaftRole.follower, leader.group.getGroupComponents().getRaftStatus().getShareStatus().role);
assertEquals(RaftRole.leader, newLeader.group.getGroupComponents().getRaftStatus().getShareStatus().role);

put(newLeader, "k1", "v1");

Expand Down

0 comments on commit fd2a4c7

Please sign in to comment.