From 413753ff28475c4da36616891d357edaab993d8c Mon Sep 17 00:00:00 2001 From: Joshua Appelman Date: Fri, 5 Jun 2015 12:05:05 +0200 Subject: [PATCH] Removes return statement irt #1700. This fixes #1700 and closes #1701. Thanks to: Edwin Shin [eddies]. --- lib/runnable.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/runnable.js b/lib/runnable.js index 6e4803fd7f..399c18db10 100644 --- a/lib/runnable.js +++ b/lib/runnable.js @@ -212,9 +212,6 @@ Runnable.prototype.run = function(fn){ if (self.timedOut) return; if (finished) return multiple(err || self._trace); - // Discard the resolution if this test has already failed asynchronously - if (self.state) return; - self.clearTimeout(); self.duration = new Date - start; finished = true;