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:
parent
fa793d917e
commit
22d3a4311a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue