change the test block series for more stable tests

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
Krasi Georgiev 2019-02-04 11:14:39 +02:00
parent 00d5e19baf
commit 752ab86e4e

View file

@ -753,9 +753,9 @@ func TestCancelCompactions(t *testing.T) {
defer os.RemoveAll(tmpdir) defer os.RemoveAll(tmpdir)
// Create some blocks to fall within the compaction range. // Create some blocks to fall within the compaction range.
createBlock(t, tmpdir, 7000, 0, 1000) createBlock(t, tmpdir, genSeries(10, 10000, 0, 1000))
createBlock(t, tmpdir, 7000, 1000, 2000) createBlock(t, tmpdir, genSeries(10, 10000, 1000, 2000))
createBlock(t, tmpdir, 1, 2000, 2001) // The most recent block is ignored so can be e small one. 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. // Copy the db so we have an exact copy to compare compaction times.
tmpdirCopy := tmpdir + "Copy" tmpdirCopy := tmpdir + "Copy"