mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: fix error message in TestLogRestore
This commit is contained in:
parent
e8afdcfe0a
commit
62a8df304a
@ -505,9 +505,8 @@ func TestLogRestore(t *testing.T) {
|
||||
storage.ApplySnapshot(pb.Snapshot{Metadata: snap})
|
||||
raftLog := newLog(storage)
|
||||
|
||||
// only has the guard entry
|
||||
if len(raftLog.allEntries()) != 0 {
|
||||
t.Errorf("len = %d, want 1", len(raftLog.allEntries()))
|
||||
t.Errorf("len = %d, want 0", len(raftLog.allEntries()))
|
||||
}
|
||||
if raftLog.firstIndex() != index+1 {
|
||||
t.Errorf("firstIndex = %d, want %d", raftLog.firstIndex(), index+1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user