mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ci: fix Timeout Error in tests (#11301)
This commit is contained in:
parent
47e708b979
commit
f196f84ed0
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user