From 33a0fb58d5ffbc423be636a0ba66a0eb18f08235 Mon Sep 17 00:00:00 2001 From: Mauro Stettler Date: Wed, 12 Jan 2022 19:21:41 +0000 Subject: [PATCH] fixing merge mistakes Signed-off-by: Mauro Stettler --- tsdb/db_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tsdb/db_test.go b/tsdb/db_test.go index 45d2325bae..d94c387b34 100644 --- a/tsdb/db_test.go +++ b/tsdb/db_test.go @@ -1461,6 +1461,10 @@ func TestSizeRetention(t *testing.T) { } require.NoError(t, headApp.Commit()) + require.Eventually(t, func() bool { + return db.Head().chunkDiskMapper.IsQueueEmpty() + }, 2*time.Second, 100*time.Millisecond) + // Test that registered size matches the actual disk size. require.NoError(t, db.reloadBlocks()) // Reload the db to register the new db size. require.Equal(t, len(blocks), len(db.Blocks())) // Ensure all blocks are registered.