From 3ce8babd9bd0470bd5683158cc320277cc04d5ed Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 2 May 2019 23:57:26 +0900 Subject: [PATCH] audio: Remove unnecessary sleepings --- audio/audio_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/audio/audio_test.go b/audio/audio_test.go index 38e460917..f901edede 100644 --- a/audio/audio_test.go +++ b/audio/audio_test.go @@ -49,9 +49,6 @@ func TestGC(t *testing.T) { } p.Play() - // 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(200 * time.Millisecond) got = PlayersNumForTesting() if want := 1; got != want { t.Errorf("PlayersNum() after Play: got: %d, want: %d", got, want) @@ -99,9 +96,6 @@ func TestSameSourcePlayers(t *testing.T) { p0.Play() p1.Play() - // 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(200 * time.Millisecond) if err := UpdateForTesting(); err == nil { t.Errorf("got: nil, want: an error") }