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:
Moshe Atlow authored and Richard Lau committed 2022-12-07 09:05:00 -05:00
1 parent 37e909251c
commit 99ee5e484d
1 file changed
+2 -2
+2 -2
View File
@@ -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() {