mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: fix error message format in test
This commit is contained in:
parent
37ab463e86
commit
8074a5b5a4
@ -199,10 +199,10 @@ func TestUnstableRestore(t *testing.T) {
|
||||
u.restore(s)
|
||||
|
||||
if u.offset != s.Metadata.Index+1 {
|
||||
t.Errorf("offset = %d, want %d", u.offset != s.Metadata.Index+1)
|
||||
t.Errorf("offset = %d, want %d", u.offset, s.Metadata.Index+1)
|
||||
}
|
||||
if len(u.entries) != 0 {
|
||||
t.Errorf("len = %d, want 0", len(u.entries), 0)
|
||||
t.Errorf("len = %d, want 0", len(u.entries))
|
||||
}
|
||||
if !reflect.DeepEqual(u.snapshot, &s) {
|
||||
t.Errorf("snap = %v, want %v", u.snapshot, &s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user