Skip to content

Commit

Permalink
Ensure consistent calculation of duration
Browse files Browse the repository at this point in the history
probably doesn't make much of a difference, but seems more correct
  • Loading branch information
FND authored and boneskull committed Jan 2, 2018
1 parent ef981a2 commit 3e85f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/base.js
Expand Up @@ -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 () {
Expand Down

0 comments on commit 3e85f89

Please sign in to comment.