From a17d826c9da9b75c4d16112c98503879c715a8e5 Mon Sep 17 00:00:00 2001 From: Pooja D P Date: Mon, 4 Jan 2021 02:48:24 -0800 Subject: [PATCH] test: use faster variant for rss test-memoryusage-emfile --- test/parallel/test-memory-usage-emfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-memory-usage-emfile.js b/test/parallel/test-memory-usage-emfile.js index 8dc1360d985bde..05b112e91803d1 100644 --- a/test/parallel/test-memory-usage-emfile.js +++ b/test/parallel/test-memory-usage-emfile.js @@ -14,5 +14,5 @@ const files = []; while (files.length < 256) files.push(fs.openSync(__filename, 'r')); -const r = process.memoryUsage(); -assert.strictEqual(r.rss > 0, true); +const r = process.memoryUsage.rss(); +assert.strictEqual(r > 0, true);