From afeeadd665d4d44a8159624489260557f030082e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 21 Jul 2013 15:50:50 -0700 Subject: [PATCH] Tweak times in `_.debounce` and `_.throttle` unit tests. Former-commit-id: d079ee2258151e126fd1c40efb9c01ee888170aa --- test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 15c1b3620..8b63a783b 100644 --- a/test/test.js +++ b/test/test.js @@ -687,7 +687,7 @@ }); asyncTest('should work with `maxWait` option', function() { - var limit = 96, + var limit = 128, withCount = 0, withoutCount = 0; @@ -2518,7 +2518,7 @@ test('supports not passing a `max` argument', function() { var actual = _.random(5), - limit = 50, + limit = 60, start = new Date; while ((new Date - start) < limit && actual == 5) { @@ -3136,8 +3136,8 @@ asyncTest('should trigger trailing call when invoked repeatedly', function() { var count = 0, - limit = 48, - throttled = _.throttle(function() { count++; }, 32), + limit = 96, + throttled = _.throttle(function() { count++; }, 64), start = new Date; while ((new Date - start) < limit) {