From ff7879b41e0488edb824718c73b42d41a3cbf094 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/36768 Refs: https://github.com/nodejs/node/pull/34291 Reviewed-By: Gerhard Stöbich Reviewed-By: Rich Trott Reviewed-By: Michael Dawson --- 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);