mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Raft: fix printf strings found by go vet.
This commit is contained in:
parent
3ad0df3722
commit
36558b1924
@ -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, mtmap[i])
|
||||
t.Errorf("%d: step should ignore msgHub/msgBeat", i)
|
||||
default:
|
||||
}
|
||||
} else {
|
||||
@ -74,7 +74,7 @@ func TestNodeStepUnblock(t *testing.T) {
|
||||
select {
|
||||
case err := <-errc:
|
||||
if err != tt.werr {
|
||||
t.Errorf("#%d: err = %v, want %v", err, tt.werr)
|
||||
t.Errorf("#%d: err = %v, want %v", i, err, tt.werr)
|
||||
}
|
||||
//clean up side-effect
|
||||
if ctx.Err() != nil {
|
||||
|
@ -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 %d", i, g, tt.wreject)
|
||||
t.Errorf("#%d, m.Reject = %d, want %v", i, g, tt.wreject)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user