From 10255cf19604fb95ceafb363530bf6b8f54eaea0 Mon Sep 17 00:00:00 2001 From: ping40 Date: Wed, 24 Oct 2018 16:56:10 +0800 Subject: [PATCH] raft: Fix comment on TestLeaderBcastBeat --- raft/raft_paper_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/raft/raft_paper_test.go b/raft/raft_paper_test.go index 313f9e6e5188..cca9bfeeb0f2 100644 --- a/raft/raft_paper_test.go +++ b/raft/raft_paper_test.go @@ -28,10 +28,9 @@ package raft import ( "fmt" - "testing" - "reflect" "sort" + "testing" pb "go.etcd.io/etcd/raft/raftpb" ) @@ -104,8 +103,8 @@ func TestStartAsFollower(t *testing.T) { } // TestLeaderBcastBeat tests that if the leader receives a heartbeat tick, -// it will send a msgApp with m.Index = 0, m.LogTerm=0 and empty entries as -// heartbeat to all followers. +// it will send a MsgHeartbeat with m.Index = 0, m.LogTerm=0 and empty entries +// as heartbeat to all followers. // Reference: section 5.2 func TestLeaderBcastBeat(t *testing.T) { // heartbeat interval