From 709123776bf32cb60da797c2931c811554630f0b Mon Sep 17 00:00:00 2001 From: juergba Date: Fri, 20 Sep 2019 08:41:37 +0200 Subject: [PATCH] bail suite instead of end event --- lib/runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner.js b/lib/runner.js index 3ef0da1f4d..7038162b9b 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); }; /**