summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2016-11-12 20:16:08 -0500
committerGraeme Yeates <yeatesgraeme@gmail.com>2016-11-12 20:24:53 -0500
commit271f4e6c95bff19bd7e961c77241e1474ba0b713 (patch)
tree754c271f8028d92cb35548d27a1f7b322e9b455b
parentcb19165a8eacd1e561cef2fe443d6f2de209450e (diff)
downloadasync-271f4e6c95bff19bd7e961c77241e1474ba0b713.tar.gz
Add retries to a flakey retries test casetest-retry
-rw-r--r--mocha_test/retry.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/mocha_test/retry.js b/mocha_test/retry.js
index 757b7ab..d3a5d22 100644
--- a/mocha_test/retry.js
+++ b/mocha_test/retry.js
@@ -55,6 +55,8 @@ describe("retry", function () {
});
it('retry with interval when all attempts fail',function(done) {
+ this.retries(3); // this test is flakey due to timing issues
+
var times = 3;
var interval = 50;
var callCount = 0;
@@ -208,6 +210,8 @@ describe("retry", function () {
});
it('retry with interval when some attempts fail and error test returns false at some invokation',function(done) {
+ this.retries(3); // flakey test
+
var interval = 50;
var callCount = 0;
var error = 'ERROR';