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 b664a84

Browse filesBrowse files
addaleaxMylesBorins
authored andcommitted
test: improve assertion in test-performance
PR-URL: #20809 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent 7b1c035 commit b664a84
Copy full SHA for b664a84

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-1
lines changed
Open diff view settings
Collapse file

‎test/sequential/test-performance.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-performance.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ function checkNodeTiming(props) {
6060
const delta = performance.nodeTiming[prop] - props[prop].around;
6161
assert(Math.abs(delta) < 1000);
6262
} else {
63-
assert.strictEqual(performance.nodeTiming[prop], props[prop]);
63+
assert.strictEqual(performance.nodeTiming[prop], props[prop],
64+
`mismatch for performance property ${prop}: ` +
65+
`${performance.nodeTiming[prop]} vs ${props[prop]}`);
6466
}
6567
}
6668
}

0 commit comments

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