audio: Improve test flakiness

This commit is contained in:
Hajime Hoshi 2019-01-06 00:11:18 +09:00
parent 348e50c5e7
commit e9422a9f2c

View File

@ -76,9 +76,9 @@ func TestGC(t *testing.T) {
if want := 0; got == want {
return
}
// 100[ms] should be enough all the bytes are consumed.
// 200[ms] should be enough all the bytes are consumed.
// TODO: This is a darty hack. Would it be possible to use virtual time?
time.Sleep(100 * time.Millisecond)
time.Sleep(200 * time.Millisecond)
}
t.Errorf("time out")
}