Skip to content

Commit

Permalink
test: use faster variant for rss in test-vm-memleak.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#36769
Refs: nodejs#34291
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
PoojaDurgad authored and jasnell committed Jan 11, 2021
1 parent 03c0564 commit 2ceb441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-vm-memleak.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const interval = setInterval(function() {
} catch {
}

const rss = process.memoryUsage().rss;
const rss = process.memoryUsage.rss();
assert.ok(rss < 64 * 1024 * 1024,
`memory usage: ${Math.round(rss / (1024 * 1024))}Mb`);

Expand Down

0 comments on commit 2ceb441

Please sign in to comment.