Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc37ff2

Browse filesBrowse 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 <deb2001-github@yahoo.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent daad0ab commit cc37ff2
Copy full SHA for cc37ff2

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-dh-leak.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.