1
0
Fork 0

Fix test code

master
Philip O'Toole 1 year ago
parent 53b432a391
commit 5b4ff9b8ce

@ -2538,7 +2538,7 @@ func Test_StoreLogTruncationMultinode(t *testing.T) {
t.Fatalf("Error waiting for leader: %s", err)
}
nSnaps := stats.Get(numSnaphots).String()
nSnaps := stats.Get(numSnapshots).String()
// Write more than s.SnapshotThreshold statements.
queries := []string{
@ -2558,7 +2558,7 @@ func Test_StoreLogTruncationMultinode(t *testing.T) {
// Wait for the snapshot to happen and log to be truncated.
f := func() bool {
return stats.Get(numSnaphots).String() != nSnaps
return stats.Get(numSnapshots).String() != nSnaps
}
testPoll(t, f, 100*time.Millisecond, 2*time.Second)

Loading…
Cancel
Save