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.
This commit is contained in:
beorn7 2016-03-03 13:29:39 +01:00
parent 29e31dc3c6
commit 75a6b460ef
1 changed files with 1 additions and 1 deletions

View File

@ -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)