diff --git a/compact_test.go b/compact_test.go index 2489a21e..9a45229f 100644 --- a/compact_test.go +++ b/compact_test.go @@ -733,7 +733,7 @@ func TestDisableAutoCompactions(t *testing.T) { case db.compactc <- struct{}{}: default: } - for x := 0; x < 20; x++ { + for x := 0; x < 100; x++ { if len(db.Blocks()) > 0 { break } diff --git a/db_test.go b/db_test.go index 60b26076..6217849d 100644 --- a/db_test.go +++ b/db_test.go @@ -1493,7 +1493,7 @@ func TestBlockRanges(t *testing.T) { testutil.Ok(t, err) testutil.Ok(t, app.Commit()) - for x := 1; x < 10; x++ { + for x := 0; x < 100; x++ { if len(db.Blocks()) == 2 { break } @@ -1533,7 +1533,7 @@ func TestBlockRanges(t *testing.T) { _, err = app.Add(lbl, thirdBlockMaxt+rangeToTriggercompaction, rand.Float64()) // Trigger a compaction testutil.Ok(t, err) testutil.Ok(t, app.Commit()) - for x := 1; x < 10; x++ { + for x := 0; x < 100; x++ { if len(db.Blocks()) == 4 { break }