update test to work with new isPlaying problem

This commit is contained in:
Corey Frang 2018-06-20 13:42:38 -04:00 committed by Michael "Z" Goddard
parent 8110885a62
commit 2c4edf288f
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -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');