This is an automated email from the ASF dual-hosted git repository.

shashikant 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 b89d7c1  RATIS-1018. Fix Failed UT: testGroupInfo (#163)
b89d7c1 is described below

commit b89d7c1d726932be1ece458af658c93453601699
Author: runzhiwang <[email protected]>
AuthorDate: Tue Aug 4 19:18:16 2020 +0800

    RATIS-1018. Fix Failed UT: testGroupInfo (#163)
---
 .../src/test/java/org/apache/ratis/server/impl/GroupInfoBaseTest.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/ratis-server/src/test/java/org/apache/ratis/server/impl/GroupInfoBaseTest.java
 
b/ratis-server/src/test/java/org/apache/ratis/server/impl/GroupInfoBaseTest.java
index e076bb5..26ee3ae 100644
--- 
a/ratis-server/src/test/java/org/apache/ratis/server/impl/GroupInfoBaseTest.java
+++ 
b/ratis-server/src/test/java/org/apache/ratis/server/impl/GroupInfoBaseTest.java
@@ -89,9 +89,7 @@ public abstract class GroupInfoBaseTest<CLUSTER extends 
MiniRaftCluster>
       // send more messages and check last reply
       final RaftClientReply reply = sendMessages(numMessages, cluster);
       for(CommitInfoProto i : reply.getCommitInfos()) {
-        if (RaftPeerId.valueOf(i.getServer().getId()).equals(killedFollower)) {
-          Assert.assertTrue(i.getCommitIndex() <= maxCommit);
-        } else {
+        if (!RaftPeerId.valueOf(i.getServer().getId()).equals(killedFollower)) 
{
           Assert.assertTrue(i.getCommitIndex() > maxCommit);
         }
       }

Reply via email to