From 766a2bd2cc419af066a505eb583dbdfca6569d52 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Tue, 3 Jul 2018 09:01:26 +0200 Subject: [PATCH] test: increase gaps to avoid race conditions in CI --- test/ext/max-age.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/ext/max-age.js b/test/ext/max-age.js index 2e0ea97..dcfc38d 100644 --- a/test/ext/max-age.js +++ b/test/ext/max-age.js @@ -579,7 +579,7 @@ module.exports = function () { ++i; return new Promise(function (res) { res(x + y); }); }; - mfn = memoize(fn, { maxAge: 600, preFetch: true, promise: true }); + mfn = memoize(fn, { maxAge: 1200, preFetch: true, promise: true }); mfn(3, 7).done(function (result) { a(result, 10, "Result #1"); @@ -596,7 +596,7 @@ module.exports = function () { mfn(5, 8).done(function (result) { a(result, 13, "Result B #2"); a(i, 2, "Called B #2"); - // 300 + // 600 setTimeout(function () { mfn(3, 7).done(function (result) { a(result, 10, "Result: Wait"); @@ -604,7 +604,7 @@ module.exports = function () { mfn(5, 8).done(function (result) { a(result, 13, "Result: Wait B"); a(i, 2, "Called: Wait B"); - // 200 + // 400 setTimeout(function () { mfn(3, 7).done( // 0 @@ -640,7 +640,7 @@ module.exports = function () { i, 4, "Called: Wait After B #2" ); - // 200 + // 400 setTimeout( function () { a( @@ -681,7 +681,7 @@ module.exports = function () { 4, "Called: After Refetch B: After" ); - // 200 + // 400 setTimeout( function () { mfn( @@ -770,14 +770,14 @@ module.exports = function () { ) ); }, - 200 + 400 ); } ); } ); }, - 200 + 400 ); } ); @@ -787,10 +787,10 @@ module.exports = function () { ); }, 0) ); - }, 200); + }, 400); }); }); - }, 300); + }, 600); }); }); });