While running the unit test in jasmine using the ng test
command, an error occurred.
Previously, everything was configured correctly and working well. I'm not sure why this error suddenly appeared.
Error message in browser:
Description: Connection refused
.
Error message in command prompt:
12 02 2018 12:24:54.858:WARN [karma]: No captured browser, open http://localhost
:9876/
12 02 2018 12:24:54.890:INFO [karma]: Karma v1.2.0 server started at http://loca
lhost:9876/
12 02 2018 12:24:54.890:INFO [launcher]: Launching browser Chrome with unlimited
concurrency
12 02 2018 12:24:55.780:INFO [launcher]: Starting browser Chrome
12 02 2018 12:25:55.781:WARN [launcher]: Chrome have not captured in 60000 ms, k
illing.
12 02 2018 12:25:56.373:INFO [launcher]: Trying to start Chrome again (1/2).
12 02 2018 12:26:56.377:WARN [launcher]: Chrome have not captured in 60000 ms, k
illing.
12 02 2018 12:26:56.976:INFO [launcher]: Trying to start Chrome again (2/2).
12 02 2018 12:27:57.008:WARN [launcher]: Chrome have not captured in 60000 ms, k
illing.
12 02 2018 12:27:57.455:ERROR [launcher]: Chrome failed 2 times (timeout). Givin
g up.