From 4bd5d0446bafdc2fc390b127743aefeedbd33dc1 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 5 Mar 2019 22:17:16 +0100 Subject: [PATCH] test: fix potential timeout The default timeout for one test was too low in case the test was run from a slow machine. This increases the timeout to 4 seconds. --- test/router.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/router.js b/test/router.js index ea3d73c..891487c 100644 --- a/test/router.js +++ b/test/router.js @@ -125,6 +125,9 @@ describe('Router', function () { }) it('should not stack overflow with many registered routes', function (done) { + // This test might take longer on slow machines. + this.timeout(4000) + var router = new Router() var server = createServer(router)