fix health check tests

This commit is contained in:
Raul Ochoa 2015-07-08 20:50:34 +02:00
parent c8568b175b
commit 8540965696

View File

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