Преглед изворни кода

Merge pull request #10209 from ping40/d1024

raft: Fix comment on TestLeaderBcastBeat
Xiang Li пре 7 година
родитељ
комит
798955d4d6
1 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 4
      raft/raft_paper_test.go

+ 3 - 4
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