From 42a4a606457e01df51943c9c1e68ceaf9cafa0fe Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 18 May 2018 00:02:29 +0200 Subject: [PATCH] test: improve assertion in test-performance PR-URL: https://github.com/nodejs/node/pull/20809 Reviewed-By: Ruben Bridgewater Reviewed-By: Daniel Bevenius --- test/sequential/test-performance.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sequential/test-performance.js b/test/sequential/test-performance.js index ea7e17e18dbe99..c26a7df7616025 100644 --- a/test/sequential/test-performance.js +++ b/test/sequential/test-performance.js @@ -60,7 +60,9 @@ function checkNodeTiming(props) { const delta = performance.nodeTiming[prop] - props[prop].around; assert(Math.abs(delta) < 1000); } else { - assert.strictEqual(performance.nodeTiming[prop], props[prop]); + assert.strictEqual(performance.nodeTiming[prop], props[prop], + `mismatch for performance property ${prop}: ` + + `${performance.nodeTiming[prop]} vs ${props[prop]}`); } } }