From 39e30ad0bc2a5702d25cab0e44e2feb48536eb36 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 --- 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]}`); } } }