Skip to content

Commit

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

PR-URL: #5546
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
geek authored and Fishrock123 committed Mar 8, 2016
1 parent 0547022 commit 701a2c9
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 701a2c9

Please sign in to comment.