ci: fix Timeout Error in tests (#11301)

This commit is contained in:
Nikolay Vitkov 2023-11-06 11:20:04 +01:00 committed by GitHub
parent 47e708b979
commit f196f84ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,9 @@ export class TestServer {
this.#server = createHttpServer(this.#onRequest); this.#server = createHttpServer(this.#onRequest);
} }
this.#server.on('connection', this.#onServerConnection); this.#server.on('connection', this.#onServerConnection);
// Disable this as sometimes the socket will timeout
// We rely on the fact that we will close the server at the end
this.#server.keepAliveTimeout = 0;
this.#wsServer = new WebSocketServer({server: this.#server}); this.#wsServer = new WebSocketServer({server: this.#server});
this.#wsServer.on('connection', this.#onWebSocketConnection); this.#wsServer.on('connection', this.#onWebSocketConnection);
} }