Skip to content

Commit 3e85f89

Browse files
FNDboneskull
authored andcommitted
Ensure consistent calculation of duration
probably doesn't make much of a difference, but seems more correct
1 parent ef981a2 commit 3e85f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reporters/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function Base (runner) {
304304

305305
runner.on('end', function () {
306306
stats.end = new Date();
307-
stats.duration = new Date() - stats.start;
307+
stats.duration = stats.end - stats.start;
308308
});
309309

310310
runner.on('pending', function () {

0 commit comments

Comments
 (0)