increasing duration of test

was failing in FF
This commit is contained in:
Yotam Mann 2020-04-14 23:44:37 -04:00
parent 5afe6c8dee
commit 0f47174272

View file

@ -83,7 +83,7 @@ describe("ToneBufferSource", () => {
it("invokes onerror if no url", (done) => { it("invokes onerror if no url", (done) => {
const source = new ToneBufferSource({ const source = new ToneBufferSource({
url: "./nosuchfile.wav", url: "./nosuchfile.wav",
onerror() { onerror() {
source.dispose(); source.dispose();
done(); done();
@ -279,7 +279,7 @@ describe("ToneBufferSource", () => {
player.onended = () => { player.onended = () => {
wasInvoked = true; wasInvoked = true;
}; };
}, buffer.duration * 1.1).then(() => { }, buffer.duration * 2).then(() => {
expect(wasInvoked).to.equal(true); expect(wasInvoked).to.equal(true);
}); });
}); });