From 99ad02b71294b9490d668657d2ee566102733cee 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 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); }; /**