Fix HttpCloser test on Windows

Double timeout for the refuse connnection test as it's taking 2 seconds
on Windows for some reason.
This commit is contained in:
Hornwitser committed 2021-06-09 13:28:18 +02:00
1 parent cc438574ff
commit 5b78a86166
1 file changed
+1
+1
View File
@@ -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);
});