diff options
author | murgatroid99 <michael.lumish@gmail.com> | 2015-01-30 14:13:11 -0800 |
---|---|---|
committer | murgatroid99 <michael.lumish@gmail.com> | 2015-01-30 14:13:11 -0800 |
commit | 0af89aa5586817a19297aa18a63c61ba881bc88b (patch) | |
tree | e21fc314dea33c73e9342b5f87f96f70bff3c9b6 /src/node/test | |
parent | 16c7d4d1af43046d63e16569f6ee49ac066969e5 (diff) |
Added handling for unimplemeneted methods on the server
Diffstat (limited to 'src/node/test')
-rw-r--r-- | src/node/test/client_server_test.js | 8 |
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 */ |