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();