From 7d3a7ea0d7df9b6f11df723dec370f49f4f87e99 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 9b39601e2e20b3..f704c8812801ba 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);