Skip to content

Commit a35c2f9

Browse files
MoLowRafaelGSS
authored andcommitted
test_runner: fix duration_ms to be milliseconds
PR-URL: #44450 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>
1 parent 2facf8b commit a35c2f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/test_runner/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,8 @@ class Test extends AsyncResource {
615615
}
616616

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

622622
report() {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy