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 targos committed Aug 8, 2021
1 parent 67cc3cd commit 1661cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pummel/test-vm-memleak.js
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 1661cf6

Please sign in to comment.