From 7454aff054acf8051a016acae1044a6a0462452f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 23 Jan 2021 03:55:38 -0800 Subject: [PATCH] test: improve assertion message for test-vm-memleak The test is unreliable in CI. It might be helpful to get an exact read of `rss` so this adds that to the assertion message. --- test/pummel/test-vm-memleak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pummel/test-vm-memleak.js b/test/pummel/test-vm-memleak.js index 568b37d8f6850f..60b021f69906dd 100644 --- a/test/pummel/test-vm-memleak.js +++ b/test/pummel/test-vm-memleak.js @@ -36,7 +36,7 @@ const interval = setInterval(function() { const rss = process.memoryUsage.rss(); assert.ok(rss < 64 * 1024 * 1024, - `memory usage: ${Math.round(rss / (1024 * 1024))}Mb`); + `memory usage: ${rss} (${Math.round(rss / (1024 * 1024))} MB)`); // Stop after 5 seconds. if (Date.now() - start > 5 * 1000) {