mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
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:
1 parent
cc438574ff
commit
5b78a86166
1 file changed
+1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user