Raft: a few more improvements to test messages.

This commit is contained in:
Ben Darnell
2014-10-08 15:07:11 -04:00
parent 1083ce8f73
commit d2e858587f
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ func TestNodeStep(t *testing.T) {
if msgt == msgBeat || msgt == msgHup {
select {
case <-n.recvc:
t.Errorf("%d: step should ignore msgHub/msgBeat", i)
t.Errorf("%d: step should ignore %s", i, mtmap[i])
default:
}
} else {

View File

@@ -618,7 +618,7 @@ func TestRecvMsgVote(t *testing.T) {
continue
}
if g := msgs[0].Reject; g != tt.wreject {
t.Errorf("#%d, m.Reject = %d, want %v", i, g, tt.wreject)
t.Errorf("#%d, m.Reject = %v, want %v", i, g, tt.wreject)
}
}
}