summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
authorWyatt Preul <wpreul@gmail.com>2016-03-03 10:10:46 -0600
committerWyatt Preul <wpreul@gmail.com>2016-03-03 13:21:15 -0600
commit7d3a7ea0d7df9b6f11df723dec370f49f4f87e99 (patch)
tree4e415c792b378e0d0deb25244946a3fd01c51f2f /test/parallel
parent7ae3dfb1536bba480feb28e03d50910d7b23102c (diff)
downloadnode-new-7d3a7ea0d7df9b6f11df723dec370f49f4f87e99.tar.gz
test: check memoryUsage properties
The properties on memoryUsage were not checked before, this commit checks them. PR-URL: #5546 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-memory-usage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-memory-usage.js b/test/parallel/test-memory-usage.js
index 9b39601e2e..f704c88128 100644
--- a/test/parallel/test-memory-usage.js
+++ b/test/parallel/test-memory-usage.js
@@ -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);