diff --git a/test/unit/audio-listener.js b/test/unit/audio-listener.js index a9bafa87..6f9e625d 100644 --- a/test/unit/audio-listener.js +++ b/test/unit/audio-listener.js @@ -1519,11 +1519,11 @@ describe('AudioListener', () => { constantSourceNode.start(startTime); } }).then((channelData) => { - expect(channelData[0]).to.be.closeTo(0.007105881, 0.000000001); - expect(channelData[1]).to.be.closeTo(0.007105881, 0.000000001); - expect(channelData[2]).to.be.closeTo(0.007105881, 0.000000001); - expect(channelData[3]).to.be.closeTo(0.007105881, 0.000000001); - expect(channelData[4]).to.be.closeTo(0.007105881, 0.000000001); + expect(channelData[0]).to.be.closeTo(0.007105881, 0.000000002); + expect(channelData[1]).to.be.closeTo(0.007105881, 0.000000002); + expect(channelData[2]).to.be.closeTo(0.007105881, 0.000000002); + expect(channelData[3]).to.be.closeTo(0.007105881, 0.000000002); + expect(channelData[4]).to.be.closeTo(0.007105881, 0.000000002); }); }); }); diff --git a/test/unit/audio-nodes/gain-node.js b/test/unit/audio-nodes/gain-node.js index f4354586..07e16aa4 100644 --- a/test/unit/audio-nodes/gain-node.js +++ b/test/unit/audio-nodes/gain-node.js @@ -455,7 +455,7 @@ describe('GainNode', () => { expect(channelData[0]).to.equal(1); expect(channelData[1]).to.equal(0.375); expect(channelData[2]).to.be.closeTo(0, 0.00000000001); - expect(channelData[3]).to.equal(-0.125); + expect(channelData[3]).to.be.closeTo(-0.125, 0.00000003); expect(channelData[4]).to.equal(-0.25); }); });