mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 22:12:48 -05:00
update test to work with new isPlaying problem
This commit is contained in:
parent
8110885a62
commit
2c4edf288f
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ tap.test('SoundPlayer', suite => {
|
||||||
soundPlayer.finished().then(() => log.push('play 1 finished'));
|
soundPlayer.finished().then(() => log.push('play 1 finished'));
|
||||||
soundPlayer.connect(audioEngine);
|
soundPlayer.connect(audioEngine);
|
||||||
|
|
||||||
|
await Promise.resolve();
|
||||||
|
|
||||||
audioContext.$processTo(0.005);
|
audioContext.$processTo(0.005);
|
||||||
t.equal(soundPlayer.outputNode.$state, 'PLAYING');
|
t.equal(soundPlayer.outputNode.$state, 'PLAYING');
|
||||||
|
|
Loading…
Reference in a new issue