Skip to content

Commit

Permalink
Merge pull request #12495 from VertexC/fix/testErrorMsg
Browse files Browse the repository at this point in the history
raft/raft_test: minor fix on inconsistent format of test case's error message
  • Loading branch information
ptabor committed Jan 31, 2021
2 parents 6bb26ef + 082b9a8 commit 2c8de24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions raft/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,10 +1073,10 @@ func TestProposal(t *testing.T) {
if sm, ok := p.(*raft); ok {
l := ltoa(sm.raftLog)
if g := diffu(base, l); g != "" {
t.Errorf("#%d: diff:\n%s", i, g)
t.Errorf("#%d: peer %d diff:\n%s", j, i, g)
}
} else {
t.Logf("#%d: empty log", i)
t.Logf("#%d: peer %d empty log", j, i)
}
}
sm := tt.network.peers[1].(*raft)
Expand Down Expand Up @@ -1111,10 +1111,10 @@ func TestProposalByProxy(t *testing.T) {
if sm, ok := p.(*raft); ok {
l := ltoa(sm.raftLog)
if g := diffu(base, l); g != "" {
t.Errorf("#%d: diff:\n%s", i, g)
t.Errorf("#%d: peer %d diff:\n%s", j, i, g)
}
} else {
t.Logf("#%d: empty log", i)
t.Logf("#%d: peer %d empty log", j, i)
}
}
sm := tt.peers[1].(*raft)
Expand Down

0 comments on commit 2c8de24

Please sign in to comment.