From e628b8249a668b589bea4f3d5f4ef7e378394b0a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 10 Jul 2012 16:36:20 +0200 Subject: [PATCH] Require global leak free node-varnish 0.1.1 (closes #25) Also stop ignoring leaks and run mocha once for all tests --- package.json | 4 ++-- run_tests.sh | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d68b21e8..1e7eb07d 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,9 @@ "dependencies": { "connect": "1.8.7", "cluster": "0.6.4", - "node-varnish": "0.1.0", + "node-varnish": "0.1.1", "underscore" : "1.1.x", - "windshaft" : "0.4.6", + "windshaft" : "0.4.8", "step": "0.0.x", "generic-pool": "1.0.x", "redis": "0.6.7", diff --git a/run_tests.sh b/run_tests.sh index f2c28647..70748883 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -31,13 +31,11 @@ cd test; sh prepare_db.sh >> test.log || die "database preparation failure (see PATH=node_modules/.bin/:$PATH -echo "Running unit test" -mocha -u tdd test/unit/cartodb/redis_pool.test.js - -echo "Running acceptance tests" -# NOTE: leaks detected ! TODO: fix them -mocha -u tdd --ignore-leaks test/acceptance/cache_validator.js -mocha -u tdd --ignore-leaks test/acceptance/server.js +echo "Running tests" +mocha -u tdd \ + test/unit/cartodb/redis_pool.test.js \ + test/acceptance/cache_validator.js \ + test/acceptance/server.js cleanup