From 7ae034d746388f4393bb2132cad63151e38ad449 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 7 Sep 2015 18:40:20 +0200 Subject: [PATCH] Remove no longer needed health check params --- lib/cartodb/cartodb_windshaft.js | 2 +- lib/cartodb/monitoring/health_check.js | 2 +- test/acceptance/health_check.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cartodb/cartodb_windshaft.js b/lib/cartodb/cartodb_windshaft.js index 31872ede..950b0649 100644 --- a/lib/cartodb/cartodb_windshaft.js +++ b/lib/cartodb/cartodb_windshaft.js @@ -193,7 +193,7 @@ var CartodbWindshaft = function(serverOptions) { if (!!healthConfig.enabled) { var startTime = Date.now(); - healthCheck.check(healthConfig, function(err) { + healthCheck.check(function(err) { var ok = !err; var response = { enabled: true, diff --git a/lib/cartodb/monitoring/health_check.js b/lib/cartodb/monitoring/health_check.js index dd405149..69425c2e 100644 --- a/lib/cartodb/monitoring/health_check.js +++ b/lib/cartodb/monitoring/health_check.js @@ -8,7 +8,7 @@ function HealthCheck(disableFile) { module.exports = HealthCheck; -HealthCheck.prototype.check = function(config, callback) { +HealthCheck.prototype.check = function(callback) { var self = this; diff --git a/test/acceptance/health_check.js b/test/acceptance/health_check.js index 274e9cfc..4e54393e 100644 --- a/test/acceptance/health_check.js +++ b/test/acceptance/health_check.js @@ -59,7 +59,7 @@ describe('health checks', function () { callback(null, "Maintenance"); }; - healthCheck.check(null, function(err/*, result*/) { + healthCheck.check(function(err) { assert.equal(err.message, "Maintenance"); assert.equal(err.http_status, 503); done();