Skip to content

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: #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
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.