mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-03-15 20:31:03 +08:00
add missing term
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
parent
32aed2fe2b
commit
d06e805544
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user