Skip to content

Commit

Permalink
raft: fix description in UT
Browse files Browse the repository at this point in the history
  • Loading branch information
ping40 committed Oct 22, 2018
1 parent 8c80efb commit de47099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raft/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ func TestCommitWithoutNewTermEntry(t *testing.T) {
// network recovery
tt.recover()

// elect 1 as the new leader with term 2
// elect 2 as the new leader with term 2
// after append a ChangeTerm entry from the current term, all entries
// should be committed
tt.send(pb.Message{From: 2, To: 2, Type: pb.MsgHup})
Expand Down Expand Up @@ -2566,7 +2566,7 @@ func TestLeaderAppResp(t *testing.T) {
}

// When the leader receives a heartbeat tick, it should
// send a MsgApp with m.Index = 0, m.LogTerm=0 and empty entries.
// send a MsgHeartbeat with m.Index = 0, m.LogTerm=0 and empty entries.
func TestBcastBeat(t *testing.T) {
offset := uint64(1000)
// make a state machine with log.offset = 1000
Expand Down

0 comments on commit de47099

Please sign in to comment.