mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: use faster variant for rss in test-vm-memleak.js
PR-URL: https://github.com/nodejs/node/pull/36769 Refs: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
ff7879b41e
commit
3094ef967a
1 file changed
+1
-1
@@ -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)`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user