aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/test/client_server_test.js
diff options
context:
space:
mode:
authorGravatar murgatroid99 <michael.lumish@gmail.com>2015-01-30 14:13:11 -0800
committerGravatar murgatroid99 <michael.lumish@gmail.com>2015-01-30 14:13:11 -0800
commit0af89aa5586817a19297aa18a63c61ba881bc88b (patch)
treee21fc314dea33c73e9342b5f87f96f70bff3c9b6 /src/node/test/client_server_test.js
parent16c7d4d1af43046d63e16569f6ee49ac066969e5 (diff)
Added handling for unimplemeneted methods on the server
Diffstat (limited to 'src/node/test/client_server_test.js')
-rw-r--r--src/node/test/client_server_test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/node/test/client_server_test.js b/src/node/test/client_server_test.js
index 059dd1323a..1db9f69467 100644
--- a/src/node/test/client_server_test.js
+++ b/src/node/test/client_server_test.js
@@ -185,6 +185,14 @@ describe('echo client', function() {
done();
});
});
+ it('should get correct status for unimplemented method', function(done) {
+ var stream = client.makeRequest(channel, 'unimplemented_method');
+ stream.end();
+ stream.on('status', function(status) {
+ assert.equal(status.code, grpc.status.UNIMPLEMENTED);
+ done();
+ });
+ });
});
/* TODO(mlumish): explore options for reducing duplication between this test
* and the insecure echo client test */