Skip to content

Commit c64db20

Browse files
PoojaDurgaddanielleadams
authored andcommitted
test: use faster variant for rss test-memoryusage-emfile
PR-URL: #36768 Refs: #34291 Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent ff6edbc commit c64db20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-memory-usage-emfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ const files = [];
1414
while (files.length < 256)
1515
files.push(fs.openSync(__filename, 'r'));
1616

17-
const r = process.memoryUsage();
18-
assert.strictEqual(r.rss > 0, true);
17+
const r = process.memoryUsage.rss();
18+
assert.strictEqual(r > 0, true);

0 commit comments

Comments
 (0)