From 9ba60f6a471a607d47639b73771391d792cee2cb Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 16 Sep 2016 14:02:05 -0700 Subject: [PATCH] avoid double-failure conditions when using this.skip() --- lib/runner.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/runner.js b/lib/runner.js index f7cc2515ec..22907f570f 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -220,6 +220,10 @@ Runner.prototype.checkGlobals = function(test) { * @param {Error} err */ Runner.prototype.fail = function(test, err) { + if (test.isPending()) { + return; + } + ++this.failures; test.state = 'failed';