mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
audio: skip TestNonSeekableSource on browsers
This commit is contained in:
parent
0963b8a7e3
commit
bf90217e68
@ -124,6 +124,10 @@ func (emptySource) Read(buf []byte) (int, error) {
|
||||
}
|
||||
|
||||
func TestNonSeekableSource(t *testing.T) {
|
||||
if runtime.GOOS == "js" {
|
||||
t.Skip("infinite steams in tests cannot be treated well on browsers")
|
||||
}
|
||||
|
||||
setup()
|
||||
defer teardown()
|
||||
|
||||
@ -134,8 +138,6 @@ 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?
|
||||
|
Loading…
Reference in New Issue
Block a user