From d4362db11143caba7d21fef5850a0158557836e5 Mon Sep 17 00:00:00 2001 From: Pooja D P Date: Mon, 4 Jan 2021 02:21:12 -0800 Subject: [PATCH] test: use faster variant for rss in test-crypto-dh-leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/36766 Refs: https://github.com/nodejs/node/pull/34291 Reviewed-By: Gerhard Stöbich Reviewed-By: Rich Trott Reviewed-By: Michael Dawson Reviewed-By: James M Snell --- test/parallel/test-crypto-dh-leak.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-crypto-dh-leak.js b/test/parallel/test-crypto-dh-leak.js index 65486dbd80cb64..5c4c0c61d4f41c 100644 --- a/test/parallel/test-crypto-dh-leak.js +++ b/test/parallel/test-crypto-dh-leak.js @@ -10,7 +10,7 @@ if (process.config.variables.asan) const assert = require('assert'); const crypto = require('crypto'); -const before = process.memoryUsage().rss; +const before = process.memoryUsage.rss(); { const dh = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256); const publicKey = dh.generateKeys(); @@ -21,7 +21,7 @@ const before = process.memoryUsage().rss; } } global.gc(); -const after = process.memoryUsage().rss; +const after = process.memoryUsage.rss(); // RSS should stay the same, ceteris paribus, but allow for // some slop because V8 mallocs memory during execution.