raft: fix error message format in test

This commit is contained in:
Xiang Li 2014-12-03 13:36:47 -08:00
parent 37ab463e86
commit 8074a5b5a4

View File

@ -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)