From 5b78a86166a8efef8bb7e738242b89f8404d006f Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 9 Jun 2021 13:28:18 +0200 Subject: [PATCH] Fix HttpCloser test on Windows Double timeout for the refuse connnection test as it's taking 2 seconds on Windows for some reason. --- test/master/HttpCloser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/master/HttpCloser.js b/test/master/HttpCloser.js index 9b59de49..1476592f 100644 --- a/test/master/HttpCloser.js +++ b/test/master/HttpCloser.js @@ -144,6 +144,7 @@ function serverSuite(proto) { }); it("should refuse connection if request sent after starting closure", async function() { + this.timeout(4000); // On Windows this test takes 2 seconds for some reason. server.on("request", (request, response) => { setTimeout(() => { response.end("ok-4"); }, 3*tick); });