mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
audio: Improve test flakiness
This commit is contained in:
parent
348e50c5e7
commit
e9422a9f2c
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user