Skip to content

Commit cc37ff2

Browse files
PoojaDurgaddanielleadams
authored andcommitted
test: use faster variant for rss in test-crypto-dh-leak
PR-URL: #36766 Refs: #34291 Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent daad0ab commit cc37ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-crypto-dh-leak.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (process.config.variables.asan)
1010
const assert = require('assert');
1111
const crypto = require('crypto');
1212

13-
const before = process.memoryUsage().rss;
13+
const before = process.memoryUsage.rss();
1414
{
1515
const dh = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
1616
const publicKey = dh.generateKeys();
@@ -21,7 +21,7 @@ const before = process.memoryUsage().rss;
2121
}
2222
}
2323
global.gc();
24-
const after = process.memoryUsage().rss;
24+
const after = process.memoryUsage.rss();
2525

2626
// RSS should stay the same, ceteris paribus, but allow for
2727
// some slop because V8 mallocs memory during execution.

0 commit comments

Comments
 (0)