aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-07-07 16:11:47 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-07-07 16:11:47 -0700
commit2be6ac0dc14901b7f8728fcc0627592c0d4e37c1 (patch)
treef79b5142384246977dd3272a92de026ce6810d86 /src/node
parentd046cc6de52e3bf0a742efd19597b680d689f373 (diff)
Minor changes to match recent design changes
Diffstat (limited to 'src/node')
-rw-r--r--src/node/health_check/health.js2
-rw-r--r--src/node/health_check/health.proto2
-rw-r--r--src/node/test/health_test.js4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/node/health_check/health.js b/src/node/health_check/health.js
index 632cb24127..09a57d38bd 100644
--- a/src/node/health_check/health.js
+++ b/src/node/health_check/health.js
@@ -51,7 +51,7 @@ HealthImplementation.prototype.setStatus = function(service, status) {
HealthImplementation.prototype.check = function(call, callback){
var service = call.request.service;
- callback(null, {status: _.get(this.statusMap, service, 'UNSPECIFIED')});
+ callback(null, {status: _.get(this.statusMap, service, 'UNKNOWN')});
};
module.exports = {
diff --git a/src/node/health_check/health.proto b/src/node/health_check/health.proto
index 224d954faa..1f6eb6a80d 100644
--- a/src/node/health_check/health.proto
+++ b/src/node/health_check/health.proto
@@ -37,7 +37,7 @@ message HealthCheckRequest {
message HealthCheckResponse {
enum ServingStatus {
- UNSPECIFIED = 0;
+ UNKNOWN = 0;
SERVING = 1;
NOT_SERVING = 2;
}
diff --git a/src/node/test/health_test.js b/src/node/test/health_test.js
index b4ff753877..456b686b9b 100644
--- a/src/node/test/health_test.js
+++ b/src/node/test/health_test.js
@@ -80,11 +80,11 @@ describe('Health Checking', function() {
done();
});
});
- it('should respond with UNSPECIFIED for an unknown service', function(done) {
+ it('should respond with UNKNOWN for an unknown service', function(done) {
healthClient.check({service: 'unknown.service.Name'},
function(err, response) {
assert.ifError(err);
- assert.strictEqual(response.status, 'UNSPECIFIED');
+ assert.strictEqual(response.status, 'UNKNOWN');
done();
});
});