diff --git a/test/component/Envelope.js b/test/component/Envelope.js index ec377022..fc2b9af5 100644 --- a/test/component/Envelope.js +++ b/test/component/Envelope.js @@ -262,7 +262,7 @@ function (Envelope, Basic, Offline, Test) { if (time < env.attack){ expect(sample).to.be.within(0, 1); } else if (time < env.attack + env.decay){ - expect(sample).to.be.within(env.sustain, 1); + expect(sample).to.be.within(env.sustain - 0.001, 1); } else if (time < duration){ expect(sample).to.be.closeTo(env.sustain, 0.1); } else if (time < duration + env.release){