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 <deb2001-github@yahoo.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
PoojaDurgad authored and MylesBorins committed Aug 31, 2021
1 parent ff7879b commit 3094ef9
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 @@ -39,7 +39,7 @@ const interval = setInterval(function() {
} catch {
}

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

Expand Down

0 comments on commit 3094ef9

Please sign in to comment.