Improve follower term conflict resolution
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / test / java / org / opendaylight / controller / cluster / raft / FollowerLogInformationTest.java
index d22e9e5eb0a09c223bffb204d97c07eed5fddc8c..8e80e30d8bee736e6aad87cd3992c2065085d932 100644 (file)
@@ -121,13 +121,13 @@ public class FollowerLogInformationTest {
         FollowerLogInformation followerLogInformation =
                 new FollowerLogInformation(new PeerInfo("follower1", null, VotingState.VOTING), 1, context);
 
-        assertTrue(followerLogInformation.decrNextIndex());
+        assertTrue(followerLogInformation.decrNextIndex(1));
         assertEquals("getNextIndex", 0, followerLogInformation.getNextIndex());
 
-        assertTrue(followerLogInformation.decrNextIndex());
+        assertTrue(followerLogInformation.decrNextIndex(1));
         assertEquals("getNextIndex", -1, followerLogInformation.getNextIndex());
 
-        assertFalse(followerLogInformation.decrNextIndex());
+        assertFalse(followerLogInformation.decrNextIndex(1));
         assertEquals("getNextIndex", -1, followerLogInformation.getNextIndex());
     }
 }