Skip to content

Commit

Permalink
test_runner: fix duration_ms to be milliseconds
Browse files Browse the repository at this point in the history
PR-URL: nodejs#44450
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
  • Loading branch information
MoLow authored and Fyko committed Sep 15, 2022
1 parent 76b4a24 commit 9ab606c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ class Test extends AsyncResource {
}

#duration() {
// Duration is recorded in BigInt nanoseconds. Convert to seconds.
return Number(this.endTime - this.startTime) / 1_000_000_000;
// Duration is recorded in BigInt nanoseconds. Convert to milliseconds.
return Number(this.endTime - this.startTime) / 1_000_000;
}

report() {
Expand Down

0 comments on commit 9ab606c

Please sign in to comment.