Require global leak free node-varnish 0.1.1 (closes #25)

Also stop ignoring leaks and run mocha once for all tests
This commit is contained in:
Sandro Santilli 2012-07-10 16:36:20 +02:00
parent 45b9cac423
commit e628b8249a
2 changed files with 7 additions and 9 deletions

View File

@ -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",

View File

@ -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