[Gradle, JS] Use karma 6.0 API to set ping timeout
^KT-45621 fixed
This commit is contained in:
committed by
TeamCityServer
parent
f318951b64
commit
a113df8c43
@@ -18,7 +18,7 @@ function configureTimeouts(injector) {
|
|||||||
webServer.timeout = 0
|
webServer.timeout = 0
|
||||||
}
|
}
|
||||||
const socketServer = injector.get('socketServer');
|
const socketServer = injector.get('socketServer');
|
||||||
if (socketServer) {
|
if (socketServer && typeof socketServer.set === 'function') {
|
||||||
// Disable socket.io heartbeat (ping) to avoid browser disconnecting when debugging tests,
|
// Disable socket.io heartbeat (ping) to avoid browser disconnecting when debugging tests,
|
||||||
// because no ping requests are sent when test execution is suspended on a breakpoint.
|
// because no ping requests are sent when test execution is suspended on a breakpoint.
|
||||||
// Default values are not enough for suspended execution:
|
// Default values are not enough for suspended execution:
|
||||||
|
|||||||
@@ -97,4 +97,5 @@ export function fixMochaTimeout(config) {
|
|||||||
|
|
||||||
export function fixBrowserActivityTimeout(config) {
|
export function fixBrowserActivityTimeout(config) {
|
||||||
config.browserNoActivityTimeout = null
|
config.browserNoActivityTimeout = null
|
||||||
|
config.pingTimeout = 24 * 60 * 60 * 1000
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user