diff --git a/lib/runner.js b/lib/runner.js index d8d8dd6fb8..da7de9ed50 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -860,7 +860,7 @@ Runner.prototype.uncaught = function(err) { } // bail - this.emit(constants.EVENT_RUN_END); + this.suite.bail(true); }; /**