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: #44450
Backport-PR-URL: #44873
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
  • Loading branch information
MoLow authored and richardlau committed Dec 7, 2022
1 parent 37e9092 commit 99ee5e4
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 @@ -619,8 +619,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 99ee5e4

Please sign in to comment.