diff --git a/raft/node_test.go b/raft/node_test.go index 1e9b6b7aa..9b00ef3b7 100644 --- a/raft/node_test.go +++ b/raft/node_test.go @@ -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 { diff --git a/raft/raft_test.go b/raft/raft_test.go index a8203e716..171966c4f 100644 --- a/raft/raft_test.go +++ b/raft/raft_test.go @@ -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) } } }