From 3e85f89026ccdfb874fa523641e6d3da94a57b61 Mon Sep 17 00:00:00 2001 From: FND Date: Tue, 2 Jan 2018 13:49:21 +0100 Subject: [PATCH] Ensure consistent calculation of duration probably doesn't make much of a difference, but seems more correct --- lib/reporters/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters/base.js b/lib/reporters/base.js index d5425c8a53..172d489785 100644 --- a/lib/reporters/base.js +++ b/lib/reporters/base.js @@ -304,7 +304,7 @@ function Base (runner) { runner.on('end', function () { stats.end = new Date(); - stats.duration = new Date() - stats.start; + stats.duration = stats.end - stats.start; }); runner.on('pending', function () {