From 418033000c9f57644c3826cfbab05e8d07854c58 Mon Sep 17 00:00:00 2001 From: Pooja D P Date: Mon, 4 Jan 2021 03:09:19 -0800 Subject: [PATCH] test: use faster variant for rss in test-vm-memleak.js --- 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 a433ab6565e147..568b37d8f6850f 100644 --- a/test/pummel/test-vm-memleak.js +++ b/test/pummel/test-vm-memleak.js @@ -34,7 +34,7 @@ const interval = setInterval(function() { } catch { } - const rss = process.memoryUsage().rss; + const rss = process.memoryUsage.rss(); assert.ok(rss < 64 * 1024 * 1024, `memory usage: ${Math.round(rss / (1024 * 1024))}Mb`);