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: #36769
Refs: #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 danielleadams committed Jan 12, 2021
1 parent 53cf996 commit daad0ab
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 daad0ab

Please sign in to comment.