Skip to content

Commit

Permalink
fix errorFilter comment to reflect that we only pass err argument. Re…
Browse files Browse the repository at this point in the history
…moved setTimeout from retryable tests
  • Loading branch information
bojand committed Aug 8, 2016
1 parent 0af976c commit 4367751
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion lib/retry.js
Expand Up @@ -23,7 +23,7 @@ import constant from 'lodash/constant';
* erroneous result. If it returns `true` the retry attempts will continue;
* if the function returns `false` the retry flow is aborted with the current
* attempt's error and result being returned to the final callback.
* Invoked with (err, result).
* Invoked with (err).
* * If `opts` is a number, the number specifies the number of times to retry,
* with the default interval of `0`.
* @param {Function} task - A function which receives two arguments: (1) a
Expand Down
6 changes: 0 additions & 6 deletions mocha_test/retryable.js
Expand Up @@ -16,9 +16,6 @@ describe('retryable', function () {
expect(calls).to.equal(3);
done();
});

setTimeout(function () {
}, 15);
});

it('basics with error test function', function (done) {
Expand All @@ -40,9 +37,6 @@ describe('retryable', function () {
expect(calls).to.equal(3);
done();
});

setTimeout(function () {
}, 15);
});

it('should work as an embedded task', function(done) {
Expand Down

0 comments on commit 4367751

Please sign in to comment.