Initial implementation of saving and installing snapshots
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / test / java / org / opendaylight / controller / cluster / raft / behaviors / FollowerTest.java
index ca0e13db03261140844490003d38042abbf236af..677442402c61a6c928e000ded711819ddcca91eb 100644 (file)
@@ -190,14 +190,9 @@ public class FollowerTest extends AbstractRaftActorBehaviorTest {
 
             // Set the last log entry term for the receiver to be greater than
             // what we will be sending as the prevLogTerm in AppendEntries
-            MockRaftActorContext.MockReplicatedLog mockReplicatedLog =
+            MockRaftActorContext.SimpleReplicatedLog mockReplicatedLog =
                 setLastLogEntry(context, 20, 0, "");
 
-            // Also set the entry at index 0 with term 20 which will be greater
-            // than the prevLogTerm sent by the sender
-            mockReplicatedLog.setReplicatedLogEntry(
-                new MockRaftActorContext.MockReplicatedLogEntry(20, 0, ""));
-
             // AppendEntries is now sent with a bigger term
             // this will set the receivers term to be the same as the sender's term
             AppendEntries appendEntries =