Skip to content

Commit

Permalink
chore: tighten up timeout on times
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Jun 30, 2019
1 parent 24faaf3 commit 6aceae2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/times.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('times', () => {
setTimeout(() => {
args.push(n);
callback();
}, n * 25);
}, 15);
}, (err) => {
if (err) throw err;
expect(args).to.eql([0,1,2]);
Expand All @@ -45,7 +45,7 @@ describe('times', () => {
}, (err) => {
expect(err).to.equal('error');
});
setTimeout(done, 50);
setTimeout(done, 10);
});

it('times canceled', (done) => {
Expand All @@ -72,7 +72,7 @@ describe('times', () => {
setTimeout(() => {
call_order.push(n);
callback(null, n);
}, 100 - n * 10);
}, 5);
}, (err, results) => {
expect(call_order).to.eql([0,1,2,3,4]);
expect(results).to.eql([0,1,2,3,4]);
Expand All @@ -86,7 +86,7 @@ describe('times', () => {
}, (err) => {
expect(err).to.equal('error');
});
setTimeout(done, 50);
setTimeout(done, 10);
});

it('timesSeries canceled', (done) => {
Expand Down

0 comments on commit 6aceae2

Please sign in to comment.