diff --git a/raft/raft_test.go b/raft/raft_test.go index 732f65e6..38349d5e 100644 --- a/raft/raft_test.go +++ b/raft/raft_test.go @@ -264,7 +264,7 @@ func TestLogReplication2AB(t *testing.T) { newNetwork(nil, nil, nil), []pb.Message{ {From: 1, To: 1, MsgType: pb.MessageType_MsgPropose, Entries: []*pb.Entry{{Data: []byte("somedata")}}}, - {From: 1, To: 2, MsgType: pb.MessageType_MsgHup}, + {From: 2, To: 2, MsgType: pb.MessageType_MsgHup}, {From: 1, To: 2, MsgType: pb.MessageType_MsgPropose, Entries: []*pb.Entry{{Data: []byte("somedata")}}}, }, 4,