Verify consistent index is latest at the time of snapshot

Signed-off-by: Geeta Gharpure <geetagh@amazon.com>
This commit is contained in:
Geeta Gharpure
2023-06-18 04:56:34 +00:00
parent 6f2a5b710f
commit 550aa152a7
2 changed files with 14 additions and 0 deletions

View File

@ -1017,6 +1017,9 @@ func TestSyncTrigger(t *testing.T) {
// TestSnapshot should snapshot the store and cut the persistent
func TestSnapshot(t *testing.T) {
revertFunc := verify.DisableVerifications()
defer revertFunc()
be, _ := betesting.NewDefaultTmpBackend(t)
s := raft.NewMemoryStorage()