Remove no longer needed health check params

This commit is contained in:
Raul Ochoa 2015-09-07 18:40:20 +02:00
parent c409c146bf
commit 7ae034d746
3 changed files with 3 additions and 3 deletions

View File

@ -193,7 +193,7 @@ var CartodbWindshaft = function(serverOptions) {
if (!!healthConfig.enabled) { if (!!healthConfig.enabled) {
var startTime = Date.now(); var startTime = Date.now();
healthCheck.check(healthConfig, function(err) { healthCheck.check(function(err) {
var ok = !err; var ok = !err;
var response = { var response = {
enabled: true, enabled: true,

View File

@ -8,7 +8,7 @@ function HealthCheck(disableFile) {
module.exports = HealthCheck; module.exports = HealthCheck;
HealthCheck.prototype.check = function(config, callback) { HealthCheck.prototype.check = function(callback) {
var self = this; var self = this;

View File

@ -59,7 +59,7 @@ describe('health checks', function () {
callback(null, "Maintenance"); callback(null, "Maintenance");
}; };
healthCheck.check(null, function(err/*, result*/) { healthCheck.check(function(err) {
assert.equal(err.message, "Maintenance"); assert.equal(err.message, "Maintenance");
assert.equal(err.http_status, 503); assert.equal(err.http_status, 503);
done(); done();