From 3c9752e7844bb5134927f2de6f78f5f3c8515838 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 13 Aug 2015 12:53:56 -0700 Subject: Revert "implement timeout_on_sleeping_server interop test" --- .../Grpc.IntegrationTesting/InteropClient.cs | 26 ---------------------- 1 file changed, 26 deletions(-) (limited to 'src/csharp/Grpc.IntegrationTesting/InteropClient.cs') 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(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) { -- cgit v1.2.3