From 75a6b460ef714804817f4ba1740d69374521e202 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Thu, 3 Mar 2016 13:29:39 +0100 Subject: [PATCH] Give TestEvictAndLoadChunkDescs more time to actually evict Obviously, it's really bad to depend on timing here. The proper fix would be to have something like WaitForIndexing for other things to wait for, too. For now, let's see if the wait time increase fixes the issue. --- storage/local/storage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/local/storage_test.go b/storage/local/storage_test.go index 74bb63153..65c629e13 100644 --- a/storage/local/storage_test.go +++ b/storage/local/storage_test.go @@ -1205,7 +1205,7 @@ func testEvictAndLoadChunkDescs(t *testing.T, encoding chunkEncoding) { // Maintain series without any dropped chunks. s.maintainMemorySeries(fp, 0) // Give the evict goroutine an opportunity to run. - time.Sleep(50 * time.Millisecond) + time.Sleep(250 * time.Millisecond) // Maintain series again to trigger chunkDesc eviction s.maintainMemorySeries(fp, 0)