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 <deb2001-github@yahoo.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
PoojaDurgad authored and MylesBorins committed Aug 31, 2021
1 parent e5fe316 commit ff7879b
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 ff7879b

Please sign in to comment.