Skip to content

Commit

Permalink
raft: Fix comment on TestLeaderBcastBeat
Browse files Browse the repository at this point in the history
  • Loading branch information
ping40 committed Oct 24, 2018
1 parent 8c80efb commit 10255cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions raft/raft_paper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ package raft

import (
"fmt"
"testing"

"reflect"
"sort"
"testing"

pb "go.etcd.io/etcd/raft/raftpb"
)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 10255cf

Please sign in to comment.