From 752ab86e4e51b860974dc26c6b08f8000dbd31a2 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Mon, 4 Feb 2019 11:14:39 +0200 Subject: [PATCH] change the test block series for more stable tests Signed-off-by: Krasi Georgiev --- compact_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compact_test.go b/compact_test.go index fa05e442e..9141be0e1 100644 --- a/compact_test.go +++ b/compact_test.go @@ -753,9 +753,9 @@ func TestCancelCompactions(t *testing.T) { defer os.RemoveAll(tmpdir) // Create some blocks to fall within the compaction range. - createBlock(t, tmpdir, 7000, 0, 1000) - createBlock(t, tmpdir, 7000, 1000, 2000) - createBlock(t, tmpdir, 1, 2000, 2001) // The most recent block is ignored so can be e small one. + createBlock(t, tmpdir, genSeries(10, 10000, 0, 1000)) + createBlock(t, tmpdir, genSeries(10, 10000, 1000, 2000)) + createBlock(t, tmpdir, genSeries(1, 1, 2000, 2001)) // The most recent block is ignored so can be e small one. // Copy the db so we have an exact copy to compare compaction times. tmpdirCopy := tmpdir + "Copy"