Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defend against run events firing in the wrong order.
See karma-runner#61 (comment) as for why. What this mainly does is expose the real problem: onRunStart() firing out-of-order with the rest. Looks like there are some races somewhere, but I'm not convinced the problem lies within karma-junit-test itself. New error output: --- Running "karma:unit" (karma) task [D] Task source: C:\DATA\git\ymonitor-frontend\node_modules\grunt-karma\tasks\grunt-karma.js Verifying property karma.unit exists in config...OK File: [no files] Options: background=false, client={} 02 12 2016 16:17:47.082:INFO [karma]: Karma v0.13.22 server started at http://localhost:8084/ 02 12 2016 16:17:47.091:INFO [launcher]: Starting browser PhantomJS 02 12 2016 16:17:48.802:INFO [PhantomJS 2.1.1 (Windows 7 0.0.0)]: Connected on socket NHQQtIYrup2fNrbRAAAA with id 58745719 Warning: Task "karma:unit" failed. Use --force to continue. Error: Task "karma:unit" failed. at Task.<anonymous> (C:\DATA\git\ymonitor-frontend\node_modules\grunt\lib\util\task.js:205:15) at null._onTimeout (C:\DATA\git\ymonitor-frontend\node_modules\grunt\lib\util\task.js:241:33) at Timer.listOnTimeout (timers.js:92:15) Aborted due to warnings. ---
- Loading branch information