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 <[email protected]>
  • Loading branch information
geek authored and Myles Borins committed Mar 17, 2016
1 parent b80348c commit 2e46ee8
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 2e46ee8

Please sign in to comment.