audio: bug fix: players were not finished at TestNonSeekableSource

This commit is contained in:
Hajime Hoshi 2024-07-14 00:48:18 +09:00
parent 91cdaa9f11
commit 0963b8a7e3

View File

@ -134,4 +134,10 @@ func TestNonSeekableSource(t *testing.T) {
p.Play() p.Play()
p.Pause() 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)
} }