Skip to content

Commit

Permalink
test: use faster variant for rss test-memoryusage-emfile
Browse files Browse the repository at this point in the history
PR-URL: #36768
Refs: #34291
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
PoojaDurgad authored and danielleadams committed Jan 12, 2021
1 parent ff6edbc commit c64db20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-memory-usage-emfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit c64db20

Please sign in to comment.