From 78bf69efac410baf213b3e2fbf6f8e8996420cc3 Mon Sep 17 00:00:00 2001 From: Ben Page Date: Mon, 8 Aug 2016 15:45:19 -0500 Subject: [PATCH] added --expose-gc to npm test script --- package.json | 2 +- test/test.js | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 54bc531..122f32f 100755 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Connection Pool for tedious.", "main": "lib/connection-pool.js", "scripts": { - "test": "node_modules/.bin/mocha test/test.js" + "test": "node_modules/.bin/mocha --expose-gc test/test.js" }, "repository": { "type": "git", diff --git a/test/test.js b/test/test.js index 8730c9e..0be46f5 100644 --- a/test/test.js +++ b/test/test.js @@ -404,8 +404,7 @@ describe('Load Test', function() { var heapUsedKB = Math.round(process.memoryUsage().heapUsed / 1024); mem.push([count, heapUsedKB]); - - console.log(count + ': ' + heapUsedKB + 'KB'); + // console.log(count + ': ' + heapUsedKB + 'KB'); if (count === max) { var data = statistics.linearRegression(mem); @@ -477,8 +476,7 @@ describe('Load Test', function() { } else { var heapUsedKB = Math.round(process.memoryUsage().heapUsed / 1024); mem.push([count, heapUsedKB]); - - console.log(count + ': ' + heapUsedKB + 'KB'); + // console.log(count + ': ' + heapUsedKB + 'KB'); } } });