Chrome occasionally does not receive any messages before default 10s timeout - Windows 10
#2790 opened on Jul 28, 2017
Description
Expected behaviour
Chrome should receive messages from Karma during test suite. Once received tests should run.
Actual behaviour
Server is started with unlimited concurrency. Chrome is started. Chrome then disconnects with the results: Disconnected (1 times), because no message in 10000 ms.
Environment Details
Windows 10 Chrome Version 59.0.3071.115 (Official Build) (64-bit) Karma version: 1.7.0
config.set({
frameworks: ['jasmine'],
files: [..],
preprocessors: [...],
reporters: ['progress', 'coverage', 'tfs'],
port: 9876,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity,
// reporters...
});
Relevant Project dependencies:
...
"jasmine-core": "2.5.2",
"karma": "1.7.0",
"karma-chrome-launcher": "2.1.1",
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-ng-html2js-preprocessor": "^1.0.0",
"karma-phantomjs-launcher": "1.0.4",
"karma-spec-reporter": "0.0.31",
"karma-tfs-reporter": "^1.0.0"
...
Steps to reproduce the behaviour
- Create a project with the above dependencies and set up a basic gulp runner that runs unit tests using chrome and Karma.
- Run tests
- Watch for occasional failures.
- Drink heavily after work.
Additional Description:
I'm using Karma and Gulp to run unit tests in a Windows 10 TFS environment. Intermittently my builds are failing due to the aforementioned error. The stack trace that I am seeing is attached. I think there might be an issue with Chrome child processes or something not closing or perhaps a breaking change between Chrome versions that recently popped up, but I'm not sure. stack trace.txt