From de470991e185bff06951e1fba44dd4ce49b4e251 Mon Sep 17 00:00:00 2001 From: ping40 Date: Mon, 22 Oct 2018 13:59:50 +0800 Subject: [PATCH] raft: fix description in UT --- raft/raft_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raft/raft_test.go b/raft/raft_test.go index cac4bb6c2caa..395cd9004019 100644 --- a/raft/raft_test.go +++ b/raft/raft_test.go @@ -934,7 +934,7 @@ func TestCommitWithoutNewTermEntry(t *testing.T) { // network recovery tt.recover() - // elect 1 as the new leader with term 2 + // elect 2 as the new leader with term 2 // after append a ChangeTerm entry from the current term, all entries // should be committed tt.send(pb.Message{From: 2, To: 2, Type: pb.MsgHup}) @@ -2566,7 +2566,7 @@ func TestLeaderAppResp(t *testing.T) { } // When the leader receives a heartbeat tick, it should -// send a MsgApp with m.Index = 0, m.LogTerm=0 and empty entries. +// send a MsgHeartbeat with m.Index = 0, m.LogTerm=0 and empty entries. func TestBcastBeat(t *testing.T) { offset := uint64(1000) // make a state machine with log.offset = 1000