fix health check tests
This commit is contained in:
parent
c8568b175b
commit
8540965696
@ -3,7 +3,6 @@ require(__dirname + '/../support/test_helper');
|
|||||||
var assert = require('../support/assert');
|
var assert = require('../support/assert');
|
||||||
var CartodbWindshaft = require('../../lib/cartodb/server');
|
var CartodbWindshaft = require('../../lib/cartodb/server');
|
||||||
var serverOptions = require('../../lib/cartodb/server_options');
|
var serverOptions = require('../../lib/cartodb/server_options');
|
||||||
var server = new CartodbWindshaft(serverOptions);
|
|
||||||
|
|
||||||
var metadataBackend = {};
|
var metadataBackend = {};
|
||||||
var tilelive = {};
|
var tilelive = {};
|
||||||
@ -33,6 +32,8 @@ describe('health checks', function () {
|
|||||||
it('returns 200 and ok=true with enabled configuration', function (done) {
|
it('returns 200 and ok=true with enabled configuration', function (done) {
|
||||||
resetHealthConfig();
|
resetHealthConfig();
|
||||||
|
|
||||||
|
var server = new CartodbWindshaft(serverOptions);
|
||||||
|
|
||||||
assert.response(server,
|
assert.response(server,
|
||||||
healthCheckRequest,
|
healthCheckRequest,
|
||||||
{
|
{
|
||||||
@ -73,6 +74,8 @@ describe('health checks', function () {
|
|||||||
|
|
||||||
global.environment.disabled_file = '/tmp/ftreftrgtrccre';
|
global.environment.disabled_file = '/tmp/ftreftrgtrccre';
|
||||||
|
|
||||||
|
var server = new CartodbWindshaft(serverOptions);
|
||||||
|
|
||||||
assert.response(server,
|
assert.response(server,
|
||||||
healthCheckRequest,
|
healthCheckRequest,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user