diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-05-26 10:53:21 -0700 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-05-26 10:53:21 -0700 |
commit | b10ab57a88d030ffd2740162cdc2c99a32089a6d (patch) | |
tree | 677bf2c7567078360c1702d7e5e016967a047bbf /src/node/interop/interop_client.js | |
parent | bd024536e5dbc0f2a20210a6ee8438bcf393793c (diff) | |
parent | 592dfaed87ef953b22b1e48b64ae51ad915b5af9 (diff) |
Merge branch 'master' of github.com:grpc/grpc into server_auth_context
Diffstat (limited to 'src/node/interop/interop_client.js')
-rw-r--r-- | src/node/interop/interop_client.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/node/interop/interop_client.js b/src/node/interop/interop_client.js index 80f811901c..455055d9f3 100644 --- a/src/node/interop/interop_client.js +++ b/src/node/interop/interop_client.js @@ -154,13 +154,15 @@ function serverStreaming(client, done) { arg.response_parameters[resp_index].size); resp_index += 1; }); - call.on('status', function(status) { - assert.strictEqual(status.code, grpc.status.OK); + call.on('end', function() { assert.strictEqual(resp_index, 4); if (done) { done(); } }); + call.on('status', function(status) { + assert.strictEqual(status.code, grpc.status.OK); + }); } /** |