mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 03:58:55 +01:00
audio: bug fix: players were not finished at TestNonSeekableSource
This commit is contained in:
parent
91cdaa9f11
commit
0963b8a7e3
@ -134,4 +134,10 @@ func TestNonSeekableSource(t *testing.T) {
|
||||
|
||||
p.Play()
|
||||
p.Pause()
|
||||
p = nil
|
||||
runtime.GC()
|
||||
|
||||
// 200[ms] should be enough all the bytes are consumed.
|
||||
// TODO: This is a dirty hack. Would it be possible to use virtual time?
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user