Received the error below when running the Unit test case in Google Chrome Headless. Disconnected (1 times), because no message in 30000 ms. HeadlessChrome 0.0.0 (Linux 0.0.0) ERROR Disconnected
14 07 2022 08:33:36.724:WARN [launcher]: ChromeHeadless was not killed in 2000 ms,
sending SIGKILL.
15 07 2022 08:33:52.414:INFO [karma]: Karma v3.0.0 server started athttp://0.0.0.0:9876/
15 07 2022 08:33:52.445:INFO [launcher]: Launching browser ChromiumHeadlessConfigured with unlimited concurrency
15 07 2022 08:33:52.348:INFO [launcher]: Starting browser ChromeHeadless
15 07 2022 08:34:36.084:INFO [HeadlessChrome 0.0.0 (Linux 0.0.0)]: Connected on socket bWQDT9taY4WS0BRjAAAB with id 21832231
15 07 2022 08:35:06.011:WARN [HeadlessChrome 0.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 30000 ms. HeadlessChrome 0.0.0 (Linux 0.0.0) ERROR Disconnected, because n
Open the karma.conf.js file and add the lines below,
captureTimeout: 300000,
browserDisconnectTolerance: 3,
browserDisconnectTimeout : 300000,
browserNoActivityTimeout : 300000,
Comments (0)