Skip to content

Commit b664a84

Browse files
addaleaxMylesBorins
authored andcommitted
test: improve assertion in test-performance
PR-URL: #20809 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 7b1c035 commit b664a84

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/sequential/test-performance.js

+3-1
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)