mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
change the test block series for more stable tests
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
parent
00d5e19baf
commit
752ab86e4e
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue