aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/interop
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-05-22 09:49:06 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-05-22 09:49:06 -0700
commit2fb16aafa3254b42c4d53b60c0782fb627154085 (patch)
tree8f71efe1812e51444bd33e8ea020af6825852fc1 /src/node/interop
parenta4c44c2bcfa8562798b828862532b36cb76a0945 (diff)
Fixed ordering assumptions in server_streaming interop test
Diffstat (limited to 'src/node/interop')
-rw-r--r--src/node/interop/interop_client.js6
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);
+ });
}
/**