Skip to content

Commit

Permalink
fix (runner): ignore browser_complete event emitted after run_complet…
Browse files Browse the repository at this point in the history
…e event

Closes karma-runner#61
  • Loading branch information
Derek Schaller committed Feb 27, 2016
1 parent bed96c4 commit fbff235
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ var JUnitReporter = function (baseReporterDecorator, config, logger, helper, for
}

this.onBrowserComplete = function (browser) {
if (!suites) {
return // don't die if async processes aren't finished
}
var suite = suites[browser.id]
var result = browser.lastResult
if (!suite || !result) {
Expand Down

0 comments on commit fbff235

Please sign in to comment.