From 2c4edf288f61ebbc6b95ec8dce89718508c28b73 Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Wed, 20 Jun 2018 13:42:38 -0400 Subject: [PATCH] update test to work with new isPlaying problem --- test/SoundPlayer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/SoundPlayer.js b/test/SoundPlayer.js index de06401..a2f896f 100644 --- a/test/SoundPlayer.js +++ b/test/SoundPlayer.js @@ -113,6 +113,7 @@ tap.test('SoundPlayer', suite => { soundPlayer.finished().then(() => log.push('play 1 finished')); soundPlayer.connect(audioEngine); + await Promise.resolve(); audioContext.$processTo(0.005); t.equal(soundPlayer.outputNode.$state, 'PLAYING');