Skip to content

Commit 27241c3

Browse files
committed
fix: fix duration_ms to be milliseconds
PR-URL: nodejs/node#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]> (cherry picked from commit 6ee1f3444f8c1cf005153f936ffc74221d55658b)
1 parent d885ee2 commit 27241c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/test_runner/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// https://github.com/nodejs/node/blob/59527de13d39327eb3dfa8dedc92241eb40066d5/lib/internal/test_runner/test.js
1+
// https://github.com/nodejs/node/blob/6ee1f3444f8c1cf005153f936ffc74221d55658b/lib/internal/test_runner/test.js
22

33
'use strict'
44

@@ -617,8 +617,8 @@ class Test extends AsyncResource {
617617
}
618618

619619
#duration () {
620-
// Duration is recorded in BigInt nanoseconds. Convert to seconds.
621-
return Number(this.endTime - this.startTime) / 1_000_000_000
620+
// Duration is recorded in BigInt nanoseconds. Convert to milliseconds.
621+
return Number(this.endTime - this.startTime) / 1_000_000
622622
}
623623

624624
report () {

0 commit comments

Comments
 (0)