Increase waiting time in TestEvictAndLoadChunkDescs

The test had become flaky with Go1.5.

Theory here is that with Go1.5.x, sleeping for 10ms might not be
enough to wake up another goroutine, possibly because it is used for
GC. 50ms should always be enough due to GC pause guarantees with the
new GC.
This commit is contained in:
beorn7 2015-09-14 21:09:46 +02:00 committed by Fabian Reinartz
parent d33b5ebfb9
commit 597bc2707e

View file

@ -1200,7 +1200,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(10 * time.Millisecond)
time.Sleep(50 * time.Millisecond)
// Maintain series again to trigger chunkDesc eviction
s.maintainMemorySeries(fp, 0)