Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99ee5e4

Browse filesBrowse files
MoLowrichardlau
authored andcommitted
test_runner: fix duration_ms to be milliseconds
PR-URL: #44450 Backport-PR-URL: #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>
1 parent 37e9092 commit 99ee5e4
Copy full SHA for 99ee5e4

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/test_runner/test.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/test.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ class Test extends AsyncResource {
619619
}
620620

621621
#duration() {
622-
// Duration is recorded in BigInt nanoseconds. Convert to seconds.
623-
return Number(this.endTime - this.startTime) / 1_000_000_000;
622+
// Duration is recorded in BigInt nanoseconds. Convert to milliseconds.
623+
return Number(this.endTime - this.startTime) / 1_000_000;
624624
}
625625

626626
report() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.