You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by ru...@apache.org on 2020/09/08 11:29:29 UTC
[incubator-ratis] branch master updated: RATIS-1052. Fix the
testDisconnectLeader assertion
This is an automated email from the ASF dual-hosted git repository.
runzhiwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 0d96495 RATIS-1052. Fix the testDisconnectLeader assertion
0d96495 is described below
commit 0d964950e8fdf6887e53e8eb53695a14d29314c9
Author: maobaolong <30...@qq.com>
AuthorDate: Tue Sep 8 19:26:45 2020 +0800
RATIS-1052. Fix the testDisconnectLeader assertion
---
.../src/test/java/org/apache/ratis/server/impl/LeaderElectionTests.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ratis-server/src/test/java/org/apache/ratis/server/impl/LeaderElectionTests.java b/ratis-server/src/test/java/org/apache/ratis/server/impl/LeaderElectionTests.java
index b8076cb..1ccbc17 100644
--- a/ratis-server/src/test/java/org/apache/ratis/server/impl/LeaderElectionTests.java
+++ b/ratis-server/src/test/java/org/apache/ratis/server/impl/LeaderElectionTests.java
@@ -163,7 +163,7 @@ public abstract class LeaderElectionTests<CLUSTER extends MiniRaftCluster>
Thread.sleep(1000);
isolate(cluster, leader.getId());
RaftClientReply reply = client.send(new RaftTestUtil.SimpleMessage("message"));
- Assert.assertNotEquals(reply.getReplierId(), leader.getId());
+ Assert.assertNotEquals(reply.getReplierId(), leader.getId().toString());
Assert.assertTrue(reply.isSuccess());
} finally {
deIsolate(cluster, leader.getId());