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