diff options
author | 2016-04-26 17:17:02 -0700 | |
---|---|---|
committer | 2016-04-26 17:17:02 -0700 | |
commit | 85c3ab0b0b1c3abf7f8b2c7538e5ca147c88d557 (patch) | |
tree | 0d06e11a993c7d69cd351c693bf019daf10801a6 /src/csharp/Grpc.IntegrationTesting | |
parent | eeef86cea2b0699bfd2ea76876bbd2fcc99edd26 (diff) |
fix #5912
Diffstat (limited to 'src/csharp/Grpc.IntegrationTesting')
-rw-r--r-- | src/csharp/Grpc.IntegrationTesting/InteropClient.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs index 5436517960..b3b1abf1bc 100644 --- a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs +++ b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs @@ -494,7 +494,8 @@ namespace Grpc.IntegrationTesting } var ex = Assert.ThrowsAsync<RpcException>(async () => await call.ResponseStream.MoveNext()); - Assert.AreEqual(StatusCode.DeadlineExceeded, ex.Status.StatusCode); + // We can't guarantee the status code always DeadlineExceeded. See issue #2685. + Assert.Contains(ex.Status.StatusCode, new[] { StatusCode.DeadlineExceeded, StatusCode.Internal }); } Console.WriteLine("Passed!"); } |