mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #10209 from ping40/d1024
raft: Fix comment on TestLeaderBcastBeat
This commit is contained in:
commit
798955d4d6
@ -28,10 +28,9 @@ package raft
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
|
||||||
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
"testing"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/raft/raftpb"
|
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,
|
// 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
|
// it will send a MsgHeartbeat with m.Index = 0, m.LogTerm=0 and empty entries
|
||||||
// heartbeat to all followers.
|
// as heartbeat to all followers.
|
||||||
// Reference: section 5.2
|
// Reference: section 5.2
|
||||||
func TestLeaderBcastBeat(t *testing.T) {
|
func TestLeaderBcastBeat(t *testing.T) {
|
||||||
// heartbeat interval
|
// heartbeat interval
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user