Skip to content

Commit

Permalink
made timing test less strict again
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWise committed Jun 20, 2023
1 parent 8fc8d41 commit 854a96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/20.static-factory-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ describe('River.every()', function () {
expect(river).to.be.an.instanceof(River);
let count = 0;
const cancel = river.pump((x) => { expect(x).to.equal(undefined); count += 1 });
return new Promise(r => setTimeout(r, 20)).then(() => {
return new Promise(r => setTimeout(r, 40)).then(() => {
cancel();
expect(count).to.be.within(5, 30);
expect(count).to.be.within(2, 60);
});
});
});
Expand Down

0 comments on commit 854a96c

Please sign in to comment.