From 27241c3cd27ab4321ee8177ec1d44a49c261dd42 Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Sun, 4 Sep 2022 10:06:24 +0300 Subject: [PATCH] fix: fix `duration_ms` to be milliseconds PR-URL: https://github.com/nodejs/node/pull/44450 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Antoine du Hamel Reviewed-By: Franziska Hinkelmann Reviewed-By: Rich Trott Reviewed-By: Minwoo Jung (cherry picked from commit 6ee1f3444f8c1cf005153f936ffc74221d55658b) --- lib/internal/test_runner/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/test_runner/test.js b/lib/internal/test_runner/test.js index 20c1d98..d213d04 100644 --- a/lib/internal/test_runner/test.js +++ b/lib/internal/test_runner/test.js @@ -1,4 +1,4 @@ -// https://github.com/nodejs/node/blob/59527de13d39327eb3dfa8dedc92241eb40066d5/lib/internal/test_runner/test.js +// https://github.com/nodejs/node/blob/6ee1f3444f8c1cf005153f936ffc74221d55658b/lib/internal/test_runner/test.js 'use strict' @@ -617,8 +617,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 () {