From eb9f7157b1e582047a7d60ee15a0ee69c7e511ca Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Tue, 12 Jun 2018 23:49:01 -0400 Subject: [PATCH] increasing threshold --- test/source/OscillatorNode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/source/OscillatorNode.js b/test/source/OscillatorNode.js index 0b9191ff..f32cc6ca 100644 --- a/test/source/OscillatorNode.js +++ b/test/source/OscillatorNode.js @@ -78,7 +78,7 @@ function(BasicTests, OscillatorNode, Offline, Frequency, Test, Meter, Supports, osc.stop("+0.3"); var now = osc.now(); osc.onended = function(){ - expect(osc.now() - now).to.be.closeTo(0.3, 0.1); + expect(osc.now() - now).to.be.within(0.25, 0.45); osc.dispose(); done(); }; @@ -92,7 +92,7 @@ function(BasicTests, OscillatorNode, Offline, Frequency, Test, Meter, Supports, osc.stop("+0.3"); var now = osc.now(); osc.onended = function(){ - expect(osc.now() - now).to.be.closeTo(0.3, 0.1); + expect(osc.now() - now).to.be.within(0.25, 0.45); osc.dispose(); done(); };