mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
fixing test race condition
This commit is contained in:
parent
2444e99b1f
commit
7e9b025418
1 changed files with 5 additions and 3 deletions
|
@ -41,9 +41,11 @@ function(chai, Player, Master, Oscillator, Recorder, Noise, core, PulseOscillato
|
|||
expect(player.state).to.equal("started");
|
||||
});
|
||||
player.onended = function(){
|
||||
expect(player.state).to.equal("stopped");
|
||||
player.dispose();
|
||||
done();
|
||||
setTimeout(function(){
|
||||
expect(player.state).to.equal("stopped");
|
||||
player.dispose();
|
||||
done();
|
||||
}, 100);
|
||||
};
|
||||
player.toMaster();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue