aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/interop
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-08-17 13:35:54 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-08-17 13:35:54 -0700
commitaac8f141cba18e9dc3b565085673fcc2dae4fe24 (patch)
tree070b0547e95eea650f0241a73a01a030c9eb4be6 /src/node/interop
parent2194cd8fd4d53a3333fbd0e7bc938e22210d23d2 (diff)
Made deadline tests accept INTERNAL status
Diffstat (limited to 'src/node/interop')
-rw-r--r--src/node/interop/interop_client.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/interop/interop_client.js b/src/node/interop/interop_client.js
index 6d6f9a349e..612dcf01f6 100644
--- a/src/node/interop/interop_client.js
+++ b/src/node/interop/interop_client.js
@@ -264,7 +264,9 @@ function timeoutOnSleepingServer(client, done) {
payload: {body: zeroBuffer(27182)}
});
call.on('error', function(error) {
- assert.strictEqual(error.code, grpc.status.DEADLINE_EXCEEDED);
+
+ assert(error.code === grpc.status.DEADLINE_EXCEEDED ||
+ error.code === grpc.status.INTERNAL);
done();
});
}