Skip to content

Commit 5064ba6

Browse files
Update server/etcdserver/memory_storage_test.go
Co-authored-by: Marek Siarkowicz <[email protected]>
1 parent 96d8985 commit 5064ba6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/etcdserver/memory_storage_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,12 @@ func TestMemoryStorageCompaction(t *testing.T) {
5757

5858
// after compacting, entries should be:
5959
// [ {Index: 3}, {Index: 4}, {Index: 5} ]
60-
err = raftStorage.Compact(3)
60+
compacti := 3
61+
err = raftStorage.Compact(compacti)
6162
assert.NoError(t, err)
6263

6364

6465
firstIndex, err = raftStorage.FirstIndex()
6566
assert.NoError(t, err)
66-
assert.Equal(t, uint64(3+1), firstIndex)
67+
assert.Equal(t, uint64(compacti+1), firstIndex)
6768
}

0 commit comments

Comments
 (0)