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
  • Loading branch information
PoojaDurgad committed Jan 5, 2021
1 parent 8b8620d commit a17d826
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 a17d826

Please sign in to comment.