We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96d8985 commit 5064ba6Copy full SHA for 5064ba6
server/etcdserver/memory_storage_test.go
@@ -57,11 +57,12 @@ func TestMemoryStorageCompaction(t *testing.T) {
57
58
// after compacting, entries should be:
59
// [ {Index: 3}, {Index: 4}, {Index: 5} ]
60
- err = raftStorage.Compact(3)
+ compacti := 3
61
+ err = raftStorage.Compact(compacti)
62
assert.NoError(t, err)
63
64
65
firstIndex, err = raftStorage.FirstIndex()
66
- assert.Equal(t, uint64(3+1), firstIndex)
67
+ assert.Equal(t, uint64(compacti+1), firstIndex)
68
}
0 commit comments