Remove no longer needed health check params
This commit is contained in:
parent
c409c146bf
commit
7ae034d746
@ -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,
|
||||
|
@ -8,7 +8,7 @@ function HealthCheck(disableFile) {
|
||||
module.exports = HealthCheck;
|
||||
|
||||
|
||||
HealthCheck.prototype.check = function(config, callback) {
|
||||
HealthCheck.prototype.check = function(callback) {
|
||||
|
||||
var self = this;
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user