mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: use faster variant for rss test-memoryusage-emfile
PR-URL: https://github.com/nodejs/node/pull/36768 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: Michael Dawson <midawson@redhat.com>
This commit is contained in:
1 parent
ff6edbc6b2
commit
c64db20fdd
1 file changed
+2
-2
@@ -14,5 +14,5 @@ const files = [];
|
||||
while (files.length < 256)
|
||||
files.push(fs.openSync(__filename, 'r'));
|
||||
|
||||
const r = process.memoryUsage();
|
||||
assert.strictEqual(r.rss > 0, true);
|
||||
const r = process.memoryUsage.rss();
|
||||
assert.strictEqual(r > 0, true);
|
||||
Reference in new issue
Block a user