diff --git a/lib/retry.js b/lib/retry.js index 45b09a83d..a5ad866bf 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 897f83eee..48d9ee902 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) {