Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

PhantomJS disconnecting because no message in 10000 ms when set to single-run #126

Open
ciwchris opened this issue Jun 23, 2016 · 92 comments

Comments

@ciwchris
Copy link

When running tests on our build servers on random runs, seemingly, no tests run and karma exits with the message:

Disconnected (1 times), because no message in 10000 ms.

So far I've only been able to reproduce this when using the --single-run option and only on our build servers, on my dev box I've never experienced this. Here's the version info on the servers:

Windows 2012 R2
node: v4.4.5
karma: v0.13.22
karma-phantomjs-launcher: 1.0.0
phantomjs-prebuilt: 2.1.7
PhantomJS: 2.1.1

On one build server it seems the tests run about 50% of the time, on the other server it's less than 10%. Also, if I set log-level=debug then it raises the percentage to successfully running over 90% of the time on both servers. Here's the debug info from a failed run (with names stripped):

[36m22 06 2016 15:38:40.946:DEBUG [config]: [39mautoWatch set to false, because of singleRun
[36m22 06 2016 15:38:40.962:DEBUG [plugin]: [39mLoading karma-* from C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules
[36m22 06 2016 15:38:40.962:DEBUG [plugin]: [39mLoading plugin C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules/karma-chrome-launcher.
[36m22 06 2016 15:38:40.977:DEBUG [plugin]: [39mLoading plugin C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules/karma-growl-reporter.
[36m22 06 2016 15:38:40.977:DEBUG [plugin]: [39mLoading plugin C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules/karma-jasmine.
[36m22 06 2016 15:38:40.977:DEBUG [plugin]: [39mLoading plugin C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules/karma-phantomjs-launcher.
[36m22 06 2016 15:38:41.102:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.118:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.134:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.149:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.149:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.149:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.149:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.149:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.181:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[36m22 06 2016 15:38:41.227:DEBUG [watcher]: [39mExcluded file "C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…"
[32m22 06 2016 15:38:41.290:INFO [karma]: [39mKarma v0.13.22 server started at http://localhost:8080/
[32m22 06 2016 15:38:41.290:INFO [launcher]: [39mStarting browser PhantomJS
[36m22 06 2016 15:38:41.290:DEBUG [temp-dir]: [39mCreating temp dir at C:\Users\…\AppData\Local\Temp\5\karma-38961765
[36m22 06 2016 15:38:41.306:DEBUG [launcher]: [39mC:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe C:\Users\…\AppData\Local\Temp\5\karma-38961765/capture.js
[36m22 06 2016 15:38:42.724:DEBUG [web-server]: [39mserving: C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules\karma\static/client.html
[36m22 06 2016 15:38:42.740:DEBUG [web-server]: [39mserving: C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules\karma\static/karma.js
[36m22 06 2016 15:38:42.787:DEBUG [karma]: [39mA browser has connected on socket /#qjDg6OQAWpU_z-RYAAAA
[36m22 06 2016 15:38:42.802:DEBUG [web-server]: [39mupgrade /socket.io/?EIO=3&transport=websocket&sid=qjDg6OQAWpU_z-RYAAAA
[32m22 06 2016 15:38:42.829:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: [39mConnected on socket /#qjDg6OQAWpU_z-RYAAAA with id 38961765
[36m22 06 2016 15:38:42.830:DEBUG [launcher]: [39mPhantomJS (id 38961765) captured in 1.54 secs
[36m22 06 2016 15:38:42.832:DEBUG [phantomjs.launcher]: [39m

[36m22 06 2016 15:38:42.836:DEBUG [web-server]: [39mserving: C:\TeamCity\buildAgent\work\9be4dbed06b1d253\node_modules\karma\static/context.html
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/jasmine-core/lib/jasmine-core/jasmine.js?391e45351df9ee35392d2e5cb623221a969fc009 /
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
[36m22 06 2016 15:38:42.837:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/jasmine-core/lib/jasmine-core/jasmine.js
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/karma-jasmine/lib/boot.js?945a38bf4e45ad2770eb94868231905a04a0bd3e /
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/karma-jasmine/lib/boot.js
[36m22 06 2016 15:38:42.837:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/karma-jasmine/lib/boot.js
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/karma-jasmine/lib/adapter.js?7975a273517f1eb29d7bd018790fd4c7b9a485d5 /
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/karma-jasmine/lib/adapter.js
[36m22 06 2016 15:38:42.837:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253/node_modules/karma-jasmine/lib/adapter.js
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.837:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.837:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mRequesting /base/globals.js?6f656645199dd8e193689eb4f85d47ba8fbdc977 /
[36m22 06 2016 15:38:42.857:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.872:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.888:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.919:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [middleware:source-files]: [39mRequesting /absoluteC:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [middleware:source-files]: [39mFetching C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[36m22 06 2016 15:38:42.935:DEBUG [web-server]: [39mserving (cached): C:/TeamCity/buildAgent/work/9be4dbed06b1d253\…
[33m22 06 2016 15:38:52.830:WARN [PhantomJS 2.1.1 (Windows 8 0.0.0)]: [39mDisconnected (1 times), because no message in 10000 ms.

[36m22 06 2016 15:38:52.830:DEBUG [karma]: [39mRun complete, exiting.
[36m22 06 2016 15:38:52.830:DEBUG [launcher]: [39mDisconnecting all browsers
[36m22 06 2016 15:38:52.846:DEBUG [launcher]: [39mProcess PhantomJS exited with code 0
[36m22 06 2016 15:38:52.846:DEBUG [temp-dir]: [39mCleaning temp dir C:\Users\…\AppData\Local\Temp\5\karma-38961765
[36m22 06 2016 15:38:52.846:DEBUG [launcher]: [39mFinished all browsers

If I change the karma config on the build servers to use Chrome then the tests always run successfully. I've tried previous versions of karma-phantomjs-launcher and phantomjs-prebuilt, but I haven't noticed a difference. I'm not sure where to go from here.

@boschni
Copy link

boschni commented Sep 5, 2016

Try to set karma's browserNoActivityTimeout setting, that worked for me: https://github.com/karma-runner/karma/blob/master/docs/config/01-configuration-file.md#browsernoactivitytimeout

@ciwchris
Copy link
Author

ciwchris commented Sep 5, 2016

@u-nikos thanks for the suggestion. I'll give it a try when I'm back next week.

@zsims
Copy link

zsims commented Oct 5, 2016

Any luck? There's several issues raised around this. Most solutions seem to land on bump the retry count + timeout.

Wonder if this related to IPv6, as all the machines I've seen this on have localhost resolve to ::1.

@ciwchris
Copy link
Author

ciwchris commented Oct 5, 2016

@zsims, thanks for the bump.

I increased the timeout to 30 seconds and the issue persists.

[09:03:12][Karma] JavaScript Unit Tests (31s)
[09:03:13][JavaScript Unit Tests] 05 10 2016 09:03:13.020:INFO [karma]: Karma v0.13.22 server started at http://localhost:8080/
[09:03:13][JavaScript Unit Tests] 05 10 2016 09:03:13.027:INFO [launcher]: Starting browser PhantomJS
[09:03:14][JavaScript Unit Tests] 05 10 2016 09:03:14.740:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Connected on socket /#sCHRWJMhhwxelX2JAAAA with id 52110227
[09:03:44][JavaScript Unit Tests] 05 10 2016 09:03:44.741:WARN [PhantomJS 2.1.1 (Windows 8 0.0.0)]: Disconnected (1 times), because no message in 30000 ms.
[09:03:44][JavaScript Unit Tests] 05 10 2016 09:03:44.742:ERROR [karma]: [TypeError: Cannot read property 'results' of undefined]
[09:03:44][JavaScript Unit Tests] TypeError: Cannot read property 'results' of undefined
[09:03:44][JavaScript Unit Tests]     at onBrowserComplete (C:\Tools\node_modules\karma-htmlfile-reporter\index.js:77:10)
[09:03:44][JavaScript Unit Tests]     at null.<anonymous> (C:\Tools\node_modules\karma\lib\events.js:13:22)
[09:03:44][JavaScript Unit Tests]     at emitOne (events.js:82:20)
[09:03:44][JavaScript Unit Tests]     at emit (events.js:169:7)
[09:03:44][JavaScript Unit Tests]     at null._onTimeout (C:\Tools\node_modules\karma\lib\browser.js:50:15)
[09:03:44][JavaScript Unit Tests]     at Timer.listOnTimeout (timers.js:92:15)
[09:03:44][JavaScript Unit Tests] node returned 1

localhost does resolve to ::1. Is there a solution, besides changing the machine's network settings?

@SPSpwetter
Copy link

browserDisconnectTolerance will cause it to attempt to reconnect, which is better than a timeout. Though your log is indicating something else.

@chrstnbrn
Copy link

chrstnbrn commented Nov 29, 2016

I just had the same problem. It only occured on my continous integration server while working fine locally. I tried to increase the browserNoActivityTimeout but still no tests ran. I finally fixed this by removing the plugins property from my karma config.

@jeffkynaston
Copy link

Had the same issue today - worked locally on mac OSX sierra but ran into the error on our CI server (redhat) @chrstnbrn's suggestion fixed the problem for us

@ciwchris
Copy link
Author

@chrstnbrn thanks for the suggestion, but we already don't have a plugins section in our config, neither when running locally or on our CI server.

@zsims
Copy link

zsims commented Dec 1, 2016

Using Chrome instead of Phantom JS was the only way I was able to resolve this.

@ghost
Copy link

ghost commented Dec 1, 2016

I have a similar issue which just started occurring today.

The tests start to run but then after a certain number of tests (it always looks to be around the same number) I get the [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Disconnected (1 times), because no message in 10000 ms. error.

All tests ran successfully a couple of days ago and haven't changed since.

It doesn't look like I'm running out of memory and I do have swap enabled.

@bkardol
Copy link

bkardol commented Dec 2, 2016

Running into a similar issue on our build agent on VSTS.

2016-12-02T14:56:22.1321710Z �[32m02 12 2016 14:56:22.097:INFO [PhantomJS 2.1.1 (Windows 8 0.0.0)]: �[39mConnected on socket /#xRSfIrdCrG5KxvZYAAAD with id 76185905
2016-12-02T14:57:49.9471618Z �[33m02 12 2016 14:57:49.801:WARN [PhantomJS 2.1.1 (Windows 8 0.0.0)]: �[39mDisconnected (3 times)
2016-12-02T14:57:49.9471618Z �[31mPhantomJS 2.1.1 (Windows 8 0.0.0) ERROR�[39m
2016-12-02T14:57:50.1791420Z   Disconnectedundefined
2016-12-02T14:57:50.3891269Z 
2016-12-02T14:57:50.7761042Z PhantomJS 2.1.1 (Windows 8 0.0.0): Executed 0 of 0�[31m DISCONNECTED�[39m (4 mins 34.906 secs / 0 secs)
2016-12-02T14:57:50.7761042Z 
2016-12-02T14:57:55.3168146Z npm ERR! Test failed.  See above for more details.
2016-12-02T14:57:56.8176705Z ##[error]npm failed with error: C:\Program Files\nodejs\npm.cmd failed with return code: 1

We have a couple of retries, but it disconnects every time. We added the following properties to the config file:

        browserNoActivityTimeout: 100000,
        browserDisconnectTolerance: 2

@alex7egli
Copy link

I had a similar issue on Windows 10, nodejs 4.6.1, karma 1.1.2, phantomjs-prebuilt: 2.1.8. I fixed it by changing my karma config preprocessors option from:

preprocessors: {
        'app/**/*.js': 'coverage'
    },

TO

preprocessors: {
        'app/!(bower_components)/**/*.js': ['coverage'] //track test coverage of our JS code
    },

@ciwchris
Copy link
Author

ciwchris commented Dec 6, 2016

@alex7egli thanks for the suggestion. I checked, we aren't using any preprocessors.

@ErikSchierboom
Copy link

I'm also having this problem. Excluding bower_components and jspm_packages didn't help. Strangely enough, if I pass --no-single-run, I don't get the timeouts.

@Jossif
Copy link

Jossif commented Dec 19, 2016

We are having the same issue running tests in Chrome on VSTS:

2016-12-19T17:29:42.4047493Z �[36m19 12 2016 17:29:42.404:DEBUG [Chrome 50.0.2661 (Windows 10 0.0.0)]: �[39mDisconnected during run, waiting 2000ms for reconnecting.
2016-12-19T17:29:44.4219667Z �[33m19 12 2016 17:29:44.421:WARN [Chrome 50.0.2661 (Windows 10 0.0.0)]: �[39mDisconnected (1 times)
2016-12-19T17:29:44.4219667Z �[31mChrome 50.0.2661 (Windows 10 0.0.0) ERROR�[39m
2016-12-19T17:29:44.4219667Z Disconnectedundefined
2016-12-19T17:29:44.4219667Z �[1A�[2KChrome 50.0.2661 (Windows 10 0.0.0) ERROR
2016-12-19T17:29:44.4219667Z Disconnectedundefined
2016-12-19T17:29:44.4219667Z Chrome 50.0.2661 (Windows 10 0.0.0): Executed 2575 of 2846 DISCONNECTED (52.986 secs / 40.396 secs)
2016-12-19T17:29:44.4219667Z �[1A�[2KChrome 50.0.2661 (Windows 10 0.0.0): Executed 2575 of 2846 DISCONNECTED (52.986 secs / 40.396 secs)

timeouts are set in karma.conf.js to:

captureTimeout: 60000,
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 3,
browserNoActivityTimeout: 60000,

preprocessors are set to check only .js files in the app,

any suggestions ?

@Ks89
Copy link

Ks89 commented Dec 29, 2016

I have the same problem with Appveyor, but not on my mac.

@zeevm
Copy link

zeevm commented Dec 30, 2016

Same here:
Using phantomjs locally works fine, on a VSTS CI server if I use single run it gets disconnected with no message error, if I don't use single run it works on the server but then the build plan is obviously stuck because karma didn't exit.

Anyone made any progress on that?

@Ks89
Copy link

Ks89 commented Dec 30, 2016

@zeevm exactly. You explained in a better way my problem XD

@zeevm
Copy link

zeevm commented Dec 31, 2016

Going deeper I've enabled all debugging options available and the scenario is always the same, karma serves all files to PhantomJS up to karma-test-shim.js and then the process gets stuck, I assume the browser stops responding and karma disconnects it after 10 seconds.
It's always the same file that gets stuck karma-test-shim.js
I've started adding tracing outputs in it to see where exactly it hangs in the file and turns out it's a nasty hisenbug, with the rightly places log messages in the file, the browser doesn't hang and the tests run properly, not entirely deterministic though, about 40-60% success.

@rayzor65
Copy link

rayzor65 commented Jan 2, 2017

I still get the issue ("Disconnected (1 times), because no message in 10000 ms") after trying the following:

Increase browserNoActivityTimeout, waits longer but still dies
Increase browserDisconnectTolerance, still dies at the same place
Increase browserDisconnectTimeout
singleRun true or false does not make a difference

Using phantomjs: 2.1.1 and karma-phantomjs-launcher: 1.0.0

I noticed that when I skipped a large chunk of tests they did run. It's not failing on a particular test my theory now it has something to do with the amount. Any suggestions what I can try? Tweak my VM perhaps?

@rayzor65
Copy link

rayzor65 commented Jan 9, 2017

I managed to fix my issue by increasing the timeout of mocha. Hopefully this helps someone else! eg.
client: { mocha: { timeout : 20000 } },

@Ks89
Copy link

Ks89 commented Jan 9, 2017

I still get the issue also with an higher timeout

@bitencode
Copy link

Just started having this same problem last week: phantomjs 2.1.1, karma 1.3.0, karma-phantomjs-launcher 1.0.0. I've tried most of the suggestions here, nothing has helped yet. Works fine on my mac, fails with the timeout message on our linux/Jenkins build system.
[Sorry I'm not more helpful - if I find something, I'll add it here]

@iheartpaypal
Copy link

I was also running into this issue, and I discovered it was because I was (for some reason) missing the entry for localhost in my /etc/hosts file, which PhantomJS uses when it runs.

I added 127.0.0.1 localhost to my /etc/hosts, and it fixed this problem for me.

@vinylhero
Copy link

Short term fix as i'm also experiencing this issue, but try changing the port number you are using your karma tests on.
I.e change

config.set ({
    port: 9876
});

I put mine to 9877 until it stopped working and then to 9878.
This should work short term to get you working but need a proper fix

@vinylhero
Copy link

vinylhero commented Jan 16, 2017

Changing the settings fixes the issue for a short period.
I have changed port and log levels but both eventually fail again.

@androticus
Copy link

@iheartpaypal my hosts file already has entries for both 127.0.0.1 and ::1

@ErikSchierboom i tried the --no-single-run and that ran some of my tests (100/130), then the command line window just hung, no further progress no error

@rupendra-sharma
Copy link

Hi

I am getting the same issue with Chrome and Karma.
�[33m27 01 2017 15:01:51.287:WARN [Chrome 55.0.2883 (Windows 10 0.0.0)]: �[39mDisconnected (1 times), because no message in 1000000 ms.

Chrome 55.0.2883 (Windows 10 0.0.0): Executed 0 of 0�[31m DISCONNECTED�[39m (16 mins 42.766 secs / 0 secs)

My config settings are:
port: 9876,
browserNoActivityTimeout: 1000000,
captureTimeout: 1000000,
autoWatch: false,
browsers: ['Chrome'],
singleRun: true

Execute Karma from command prompt:
C:>/ node node_modules\karma\bin\karma start marilyn.conf.js --log-level warn --no-auto-watch > MyTestLog920TestCase.log
Surprisingly it worked for 920 test files but not more than that.

I do not have any plugin statement.

@developerX
Copy link

@rupendra-sharma @androticus are you guys using ui-router? What my issue was that ui-router had updated to (1.0.0-rc.1) when doing an npm install and the tests started failing out. I then switched back to the previous version of ui-router and everything runs perfect again.

I hope this helps anyone else that runs into the same issue. I spent a lot of time tracking this down hahah

@SPSpwetter
Copy link

No, the retry is about connecting, doesn't have to do with browser crash. Karma will relaunch if the browser crashes.

@Arikael
Copy link

Arikael commented Aug 18, 2017

the only thing that helped me was fixing karma version to 1.5.0 (I'm using Visual Studio Online CI)
But this is an issue with a multitude of possible causes, so it might not solve it in your case.

@cport1
Copy link

cport1 commented Sep 10, 2017

Any update on this?

@just-jeb
Copy link

just-jeb commented Sep 12, 2017

I've had this issue too. Tried different versions and browsers like PhantomJS, ChromeHeadless, jasmine-core 2.5.2, jasmin-core 2.8.0 and it seemed to have zero effect on the issue.
The only thing that actually helped me to reduce the frequency of this issue drastically (by ~95%) is changing transport for Karma:

 config.set({
        transports: ['polling'],
        ....,
 })

@johannesjo
Copy link

johannesjo commented Nov 25, 2017

Still an issue for me. Compared to Chrome, Firefox or any other browser phantomjs is just super super slow.

@jeserkin
Copy link

jeserkin commented Nov 25, 2017

Not really an issue if you use headless Chrome:

module.exports = function (config) {
  config.set({
    //...
    customLaunchers: {
      ChromeHeadless: {
        base: 'Chrome',
        flags: [
          '--headless',
          '--disable-gpu',
          '--no-sandbox',
          // Without a remote debugging port, Google Chrome exits immediately.
          '--remote-debugging-port=9222'
        ]
      }
    },
    //...
    browsers: ['ChromeHeadless'],
    //...
  });
};

@graingert
Copy link

this has started happening to my builds more and more in the past few weeks. It's on phantomjs and puppeteer.

@melkishengue
Copy link

melkishengue commented Dec 20, 2017

Also facing the same issue on our Jenkins CI server. Tests run fine locally, but fail on Jenkins CI server sometimes, with the message Executed 0 of 0 DISCONNECTED for some browsers (most of the time Chrome and IE). Failures seem to appear when we spend a "long" time since the last tests run, like some hours...

@attilacsanyi
Copy link

attilacsanyi commented Dec 20, 2017

I suffered from these timeout issues for a long time in my Angular app with CLI. I always had to increase the following 2 timeout values:

test.ts

jasmine.DEFAULT_TIMEOUT_INTERVAL = 25000;

karma.conf.js

browserNoActivityTimeout: 300000, // default 10000

Finally thanks for this blog post I replaced Karma with Jest. It is blazing fast!

Angular Jest Demo

Might be an issue with Vue as @svedova said

@jeserkin
Copy link

Sadly seems so. I've recently discovered Jest myself.

@infolock
Copy link

infolock commented Jan 5, 2018

basically same issue for us too:

[web-server]: 404: _karma_webpack_/1.bundle.js
ERROR [launcher]: PhantomJS crashed.

WARN [PhantomJS 2.1.1 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Disconnected, because no message in 10000 ms.

PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 29 DISCONNECTED (10.486 secs / 0 secs)

FAILURE UNRELATED TO TESTS
More info:
{
  success: 0,
  failed: 0,
  error: false,
  disconnected: true,
  exitCode: 1
}

Our solution was just to add an entry to our dependencies and force "karma_webpack": "2.0.6".

with karma_webpack now back to the earlier version 2.0.6 all is well once again in the force.

To be honest, I'm not sure what changed in karma_webpack from like version 2.0.8. It seems like its trying to create the _karma_webpack_ in a temporary location, but either doesn't have the proper permissions or something to do so (or there is a race condition somewhere that might be preventing it).

@just-jeb
Copy link

just-jeb commented Jan 5, 2018

I ended up moving to Jest too.

@poloroid
Copy link

So in hope this will help someone, I encountered this error importing Vuex getters with the mapGetters utility which were not used in the component (though they were used through other imported getters, not sure if relevant).

johnjbarton added a commit to johnjbarton/karma that referenced this issue Jul 25, 2018
On low-horsepower CI systems karma frequently times out waiting for phantomjs. We see this
in our Travis-CI runs. Users also see it: karma-runner/karma-phantomjs-launcher#126.
johnjbarton added a commit to johnjbarton/karma that referenced this issue Jul 26, 2018
On low-horsepower CI systems karma frequently times out waiting for phantomjs. We see this
in our Travis-CI runs. Users also see it: karma-runner/karma-phantomjs-launcher#126.
johnjbarton added a commit to karma-runner/karma that referenced this issue Jul 26, 2018
On low-horsepower CI systems karma frequently times out waiting for phantomjs. We see this
in our Travis-CI runs. Users also see it: 
karma-runner/karma-phantomjs-launcher#126.
@user23022
Copy link

user23022 commented Feb 25, 2019

TLDR; Angular component with @font-face block in scss file caused PhantomJS to disconnect. Solved by moving all @font-face blocks to a single file which is imported only once in the global scss file, NOT in the component scss files.

Not the issue
I have an Angular project with ~750 unit tests. When I had ~700 unit tests I started getting this error, both on Jenkins and locally. After hours/days of debugging and trying suggestions found on this page (thank you), I noticed that the timeout occurred when a the unit tests of a parent component are triggered right after the unit tests of it's child component have been run (did not have random tests yet). Destroying the element from the DOM seemed to work. Alongside bumping the browserDisconnectTolerance and browserNoActivityTimeout this seemed like the fix.

The issue returned.
I set the log level to debug. I noticed that imported statics in the scss are outputted in the console when running the tests. My project contained a file called fonts.scss which contained all @font-face blocks to import font files. That file also contained some variables which are used by many components (not good because the @font-face blocks were being called for many components instead of once).
Each time I ran the tests and a test file for a component which imports the fonts.scss file ran, the test runner had a pretty big delay. Every test run would fail on exactly the same position and the PhantomJS timeout would occur.
By moving the @font-face blocks from fonts.scss to the global scss only I managed to get a 100% success rate again.

@viktorsaienko
Copy link

In my case, it was not enough free memory on the server. I found it after increasing those parameters

browserDisconnectTolerance: 3 # try 3 times to reconnect
browserNoActivityTimeout: 20000 # wait 20 seconds before trying recconnect. 

I got message Killed and code error 137 afterwards.

@tapaz1
Copy link

tapaz1 commented Jun 29, 2020

For those still having this problem it appears to be a combination of these 4 libraries, and different versions not working together:

  1. jasmine-core
  2. karma-chrome-launcher
  3. karma-jasmine
  4. karma-jasmine-html-reporter

Here is the combination of libraries and version that fixed this for me:

"devDependencies": {
"@angular-devkit/architect": "^0.12.1",
"@angular-devkit/build-angular": "~0.7.0",
"@angular-devkit/build-ng-packagr": "~0.7.0",
"@angular-devkit/build-optimizer": "^0.12.0",
"@angular-devkit/build-webpack": "~0.7.0",
"@angular-devkit/core": "^7.3.3",
"@angular-devkit/schematics": "^7.3.3",
"@angular/cli": "^7.3.9",
"@angular/compiler-cli": "^7.2.16",
"@angular/language-service": "^7.2.15",
"@types/jasmine": "^3.5.10",
"@types/node": "^13.13.2",
"@types/underscore": "^1.9.4",
"browser-sync": "^2.24.7",
"codelyzer": "^5.0.1",
"jasmine-core": "2.6.2",
"jasmine-spec-reporter": "^4.2.1",
"karma": "3.0.0",
"karma-chrome-launcher": "2.2.0",
"karma-coverage-istanbul-reporter": "^2.1.1",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"ng-packagr": "^5.7.0",
"ng2-mock-component": "^0.1.0",
"nodemon": "^1.18.7",
"prettier": "^2.0.5",
"protractor": "^6.0.0",
"selenium-webdriver": "^3.6.0",
"ts-node": "~5.0.1",
"tslint": "~5.9.1",
"typescript": "3.2.4"
}

Hope this helps others 🍻

@graingert
Copy link

I had this problem without jasmine

@tapaz1
Copy link

tapaz1 commented Jun 29, 2020

@graingert - it's most likely related to Karma and the karma-chrome-launcher library then (assuming you are using Chrome and Karma as your test runner).

hansmannj added a commit to geoadmin/mf-geoadmin3 that referenced this issue Jul 8, 2022
Probably the additional configs help to prevent the timeout issues in the unit test:
karma-runner/karma-phantomjs-launcher#126
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests