From 339ac72c1100ea5e33be7ed7a8eeeb4866e6944a Mon Sep 17 00:00:00 2001 From: Jonas Dohse Date: Thu, 12 Feb 2015 14:09:50 +0000 Subject: [PATCH] Increase test run time --- tests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests.js b/tests.js index bcaabff..23d8d8c 100644 --- a/tests.js +++ b/tests.js @@ -30,10 +30,11 @@ describe('maxLag', function() { describe('toobusy()', function() { it('should return true after a little load', function(done) { + this.timeout(5000); function load() { if (toobusy()) return done(); var start = new Date(); - while ((new Date() - start) < 250) { + while ((new Date() - start) < 500) { for (var i = 0; i < 1e5;) i++; } setTimeout(load, 0);