Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
test: check memoryUsage properties The properties on memoryUsage were…
Browse files Browse the repository at this point in the history
… not checked before, this commit checks them.

PR-URL: nodejs#5546
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
geek authored and Myles Borins committed Mar 21, 2016
1 parent 7a0fcfc commit 063f22f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-memory-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ require('../common');
var assert = require('assert');

var r = process.memoryUsage();
assert.equal(true, r['rss'] > 0);
assert.ok(r.rss > 0);
assert.ok(r.heapTotal > 0);
assert.ok(r.heapUsed > 0);

0 comments on commit 063f22f

Please sign in to comment.