Closed MDzyga closed 4 years ago
We are seeing same error message starting a week ago.
I resolved Disconnected issue by adding --source-map=false
to script
but now sometimes I have this error:
09:18:54 HeadlessChrome 79.0.3945 (Linux 0.0.0): Executed 36 of 72 (skipped 14) SUCCESS (0 secs / 14.415 secs)
09:18:54 ERROR: '[2020-01-22T08:18:48.353Z] Error: Failed to complete negotiation with the server: Error'
We started converting sourcemaps from inline to URL refs about six months ago because of browser failures on large test code.
The negotiation
error is not from karma.
the negotiation error is related with @aspnet/signalr (1.1.4 version) package. This error occures only on jenkins
It's not limited to jenkins, seeing this error, just on my dev machine running Ubuntu 18, and my college using Mac OS X Catalina.
It happens very frequently, but sometimes all tests will run without disconnects for me. We've been run tests very often, so I'm fairly confident the issue only appears as of Chrome 79.0.3945
"karma": "4.4.1",
"karma-chrome-launcher": "3.1.0",
We started converting sourcemaps from inline to URL refs about six months ago because of browser failures on large test code.
My tests is running with inline sourcemaps, will change them over and report back results...
EDIT
Changing my devtool
config from inline-source-map
to source-map
or none
doesn't appear to solve the problem for me.
For me, I've discovered the disconnect issue was actually due to flawed logic in my code base, where there was a memory leak of event listeners.
After karma disconnected from chrome, we noticed chrome was still going full throttle eating up 100% of the CPU, which led us to start commenting out unit tests until the problem went away. Eventually this led us to isolate the problem to one group of unit tests and eventually to a specific class in our code base.
Hope this helps some one.
Hi, I have a problem with executing unit tests on jenkins.
Dependencies:
My karma's configuration is:
Error messages: