diff --git a/test/acceptance/health_check.js b/test/acceptance/health_check.js index 2a6d08a7..ba6340a7 100644 --- a/test/acceptance/health_check.js +++ b/test/acceptance/health_check.js @@ -3,7 +3,6 @@ require(__dirname + '/../support/test_helper'); var assert = require('../support/assert'); var CartodbWindshaft = require('../../lib/cartodb/server'); var serverOptions = require('../../lib/cartodb/server_options'); -var server = new CartodbWindshaft(serverOptions); var metadataBackend = {}; var tilelive = {}; @@ -33,6 +32,8 @@ describe('health checks', function () { it('returns 200 and ok=true with enabled configuration', function (done) { resetHealthConfig(); + var server = new CartodbWindshaft(serverOptions); + assert.response(server, healthCheckRequest, { @@ -73,6 +74,8 @@ describe('health checks', function () { global.environment.disabled_file = '/tmp/ftreftrgtrccre'; + var server = new CartodbWindshaft(serverOptions); + assert.response(server, healthCheckRequest, {