diff options
author | Bojan Djurkovic <dbojan@gmail.com> | 2016-08-08 08:58:49 -0300 |
---|---|---|
committer | Bojan Djurkovic <dbojan@gmail.com> | 2016-08-08 08:58:49 -0300 |
commit | 4367751bc420f4f279d83e8eae291708bf7990f6 (patch) | |
tree | 3be96de6c8b65cca675ad91093e7e20d79290a37 | |
parent | 0af976cc89096ee64db3bd08fe65e2b3445f56d5 (diff) | |
download | async-4367751bc420f4f279d83e8eae291708bf7990f6.tar.gz |
fix errorFilter comment to reflect that we only pass err argument. Removed setTimeout from retryable tests
-rw-r--r-- | lib/retry.js | 2 | ||||
-rw-r--r-- | mocha_test/retryable.js | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/retry.js b/lib/retry.js index 45b09a8..a5ad866 100644 --- a/lib/retry.js +++ b/lib/retry.js @@ -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 diff --git a/mocha_test/retryable.js b/mocha_test/retryable.js index 897f83e..48d9ee9 100644 --- a/mocha_test/retryable.js +++ b/mocha_test/retryable.js @@ -16,9 +16,6 @@ describe('retryable', function () { expect(calls).to.equal(3); done(); }); - - setTimeout(function () { - }, 15); }); it('basics with error test function', function (done) { @@ -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) { |