add missing term

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
Connor1996 2020-04-28 16:37:30 +08:00 committed by Connor
parent 32aed2fe2b
commit d06e805544

View File

@ -1082,7 +1082,7 @@ func TestProvideSnap2C(t *testing.T) {
// force set the next of node 2, so that node 2 needs a snapshot
sm.Prs[2].Next = 0
sm.Step(pb.Message{From: 2, To: 1, MsgType: pb.MessageType_MsgAppendResponse, Index: sm.Prs[2].Next - 1, Reject: true})
sm.Step(pb.Message{From: 2, To: 1, Term: 1, MsgType: pb.MessageType_MsgAppendResponse, Index: sm.Prs[2].Next - 1, Reject: true})
msgs := sm.readMessages()
if len(msgs) != 1 {