Skip to content

Commit b46081b

Browse files
MoLowguangwong
authored andcommitted
test_runner: fix duration_ms to be milliseconds
PR-URL: nodejs/node#44450 Backport-PR-URL: nodejs/node#44873 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]>
1 parent a0df862 commit b46081b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/test_runner/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ class Test extends AsyncResource {
619619
}
620620

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

626626
report() {

0 commit comments

Comments
 (0)