Преглед изворни кода

Added tests for health checking

murgatroid99 пре 10 година
родитељ
комит
f0c6f96e26
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/node/health_check/health.js

+ 2 - 1
src/node/health_check/health.js

@@ -51,11 +51,12 @@ HealthImplementation.prototype.setStatus = function(service, status) {
 
 
 HealthImplementation.prototype.check = function(call, callback){
 HealthImplementation.prototype.check = function(call, callback){
   var service = call.request.service;
   var service = call.request.service;
+  debugger;
   callback(null, {status: _.get(this.statusMap, service, 'UNSPECIFIED')});
   callback(null, {status: _.get(this.statusMap, service, 'UNSPECIFIED')});
 };
 };
 
 
 module.exports = {
 module.exports = {
   Client: HealthClient,
   Client: HealthClient,
-  Service: HealthClient.service,
+  service: HealthClient.service,
   Implementation: HealthImplementation
   Implementation: HealthImplementation
 };
 };