mirror of
https://github.com/talent-plan/tinykv.git
synced 2025-04-07 01:51:03 +08:00
fix typo (#420)
Populate correct id arguments to `newTestRaft` in TestHeartbeatUpdateCommit2AB
This commit is contained in:
parent
f5a5aa8a17
commit
308bfe343f
@ -912,8 +912,8 @@ func TestHeartbeatUpdateCommit2AB(t *testing.T) {
|
|||||||
}
|
}
|
||||||
for i, tt := range tests {
|
for i, tt := range tests {
|
||||||
sm1 := newTestRaft(1, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
|
sm1 := newTestRaft(1, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
|
||||||
sm2 := newTestRaft(1, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
|
sm2 := newTestRaft(2, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
|
||||||
sm3 := newTestRaft(1, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
|
sm3 := newTestRaft(3, []uint64{1, 2, 3}, 10, 1, NewMemoryStorage())
|
||||||
nt := newNetwork(sm1, sm2, sm3)
|
nt := newNetwork(sm1, sm2, sm3)
|
||||||
nt.send(pb.Message{From: 1, To: 1, MsgType: pb.MessageType_MsgHup})
|
nt.send(pb.Message{From: 1, To: 1, MsgType: pb.MessageType_MsgHup})
|
||||||
nt.isolate(1)
|
nt.isolate(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user