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) {
|
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,
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user