Skip to content

Commit 60f9ad6

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/etcdserver/memory_storage_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ import (
2323
"go.etcd.io/raft/v3/raftpb"
2424
)
2525

26-
// TestMemoryStorageCompaction tests that after calling raftStorage.Compact(compacti)
27-
// without errors, the dummy entry becomes {Index: compacti} and
28-
// raftStorage.FirstIndex() returns (compacti+1, nil).
29-
func TestMemoryStorageCompaction(t *testing.T) {
26+
// TestMemoryStorageCompactInclusive tests that compacting index is inclusive, meaning that first index after compaction is larger by one than compacted index.
27+
func TestMemoryStorageCompactInclusive(t *testing.T) {
3028
// entries: [ {Index: 0} ]
3129
raftStorage := raft.NewMemoryStorage()
3230

0 commit comments

Comments
 (0)