Skip to content

Commit

Permalink
Merge pull request #10209 from ping40/d1024
Browse files Browse the repository at this point in the history
raft: Fix comment on TestLeaderBcastBeat
  • Loading branch information
xiang90 committed Oct 25, 2018
2 parents 38da00b + 10255cf commit 798955d
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 798955d

Please sign in to comment.