aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2015-08-13 12:53:56 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2015-08-13 12:53:56 -0700
commit3c9752e7844bb5134927f2de6f78f5f3c8515838 (patch)
treed4d9eacda14be8bd68e00bc2eeb167a87b005ea9 /src/csharp/Grpc.IntegrationTesting/InteropClient.cs
parentd2b2ca87137afa9fd47d28d8908215b78310d9dd (diff)
Revert "implement timeout_on_sleeping_server interop test"
Diffstat (limited to 'src/csharp/Grpc.IntegrationTesting/InteropClient.cs')
-rw-r--r--src/csharp/Grpc.IntegrationTesting/InteropClient.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
index d10e7c11a8..385ca92086 100644
--- a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
+++ b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
@@ -169,9 +169,6 @@ namespace Grpc.IntegrationTesting
case "cancel_after_first_response":
await RunCancelAfterFirstResponseAsync(client);
break;
- case "timeout_on_sleeping_server":
- await RunTimeoutOnSleepingServerAsync(client);
- break;
case "benchmark_empty_unary":
RunBenchmarkEmptyUnary(client);
break;
@@ -461,29 +458,6 @@ namespace Grpc.IntegrationTesting
Console.WriteLine("Passed!");
}
- public static async Task RunTimeoutOnSleepingServerAsync(TestService.ITestServiceClient client)
- {
- Console.WriteLine("running timeout_on_sleeping_server");
-
- var deadline = DateTime.UtcNow.AddMilliseconds(1);
- using (var call = client.FullDuplexCall(deadline: deadline))
- {
- try
- {
- await call.RequestStream.WriteAsync(StreamingOutputCallRequest.CreateBuilder()
- .SetPayload(CreateZerosPayload(27182)).Build());
- }
- catch (InvalidOperationException)
- {
- // Deadline was reached before write has started. Eat the exception and continue.
- }
-
- var ex = Assert.Throws<RpcException>(async () => await call.ResponseStream.MoveNext());
- Assert.AreEqual(StatusCode.DeadlineExceeded, ex.Status.StatusCode);
- }
- Console.WriteLine("Passed!");
- }
-
// This is not an official interop test, but it's useful.
public static void RunBenchmarkEmptyUnary(TestService.ITestServiceClient client)
{