mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test_runner: fix duration_ms to be milliseconds
PR-URL: https://github.com/nodejs/node/pull/44450 Backport-PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
37e909251c
commit
99ee5e484d
1 file changed
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user