From dfec6d9a6d8ae87663423dcd412d59afa0a280ed Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 30 Oct 2012 08:10:40 -0700 Subject: [PATCH] Adjust `_.throttle` unit test. Former-commit-id: 1cc461b62fb5ca20f2e623ab145f157a92d18fcf --- test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 915b0f942..38b63bce0 100644 --- a/test/test.js +++ b/test/test.js @@ -1646,12 +1646,12 @@ var throttled = _.throttle(function() { times.push(new Date - now); - }, 20); + }, 40); - setTimeout(throttled, 20); - setTimeout(throttled, 20); setTimeout(throttled, 40); setTimeout(throttled, 40); + setTimeout(throttled, 80); + setTimeout(throttled, 80); setTimeout(function() { var actual = _.every(times, function(value, index) { @@ -1662,7 +1662,7 @@ ok(actual); QUnit.start(); - }, 120); + }, 260); }); }());