From cb3989fee116eb15cbe3fd51dc3192e0aa33cb7a Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 1 Jun 2018 13:12:21 +0200 Subject: [PATCH] test: log before and after RSS in memory leak test Refs: https://github.com/nodejs/node/issues/21076 --- test/parallel/test-crypto-dh-leak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-crypto-dh-leak.js b/test/parallel/test-crypto-dh-leak.js index e57c65b8b1fceb..bcca210503299b 100644 --- a/test/parallel/test-crypto-dh-leak.js +++ b/test/parallel/test-crypto-dh-leak.js @@ -23,4 +23,4 @@ const after = process.memoryUsage().rss; // RSS should stay the same, ceteris paribus, but allow for // some slop because V8 mallocs memory during execution. -assert(after - before < 5 << 20); +assert(after - before < 5 << 20, `before=${before} after=${after}`);