From 063f22f1f0ce1cc3b0e4d82e681dc14ef8d14e14 Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Thu, 3 Mar 2016 10:10:46 -0600 Subject: [PATCH] test: check memoryUsage properties The properties on memoryUsage were not checked before, this commit checks them. PR-URL: #5546 Reviewed-By: Colin Ihrig --- test/parallel/test-memory-usage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-memory-usage.js b/test/parallel/test-memory-usage.js index 9b39601e2e2..f704c881280 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);