fix flaky compaction test (#458)

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
Krasi Georgiev 2018-11-21 00:33:14 +02:00 committed by GitHub
parent 7f00217d77
commit b75d702ceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -737,7 +737,7 @@ func TestDisableAutoCompactions(t *testing.T) {
if len(db.Blocks()) > 0 {
break
}
time.Sleep(30 * time.Millisecond)
time.Sleep(100 * time.Millisecond)
}
testutil.Assert(t, len(db.Blocks()) > 0, "No block was persisted after the set timeout.")
}