diff options
author | 2015-05-04 09:20:43 -0700 | |
---|---|---|
committer | 2015-05-04 14:56:51 -0700 | |
commit | 8c2dd9d864cb874f8fbe577faf8c3f72e6a077e4 (patch) | |
tree | fc4141f5561aa05f2d0bcce70f9f98296731a1b4 /src/csharp/Grpc.IntegrationTesting/InteropClient.cs | |
parent | 1b54fcf31b32ae8c7f07ae733e781c184791a7c2 (diff) |
Fixes for C# cancellation support
Diffstat (limited to 'src/csharp/Grpc.IntegrationTesting/InteropClient.cs')
-rw-r--r-- | src/csharp/Grpc.IntegrationTesting/InteropClient.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs index 440702d06f..a433659a08 100644 --- a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs +++ b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs @@ -366,6 +366,8 @@ namespace Grpc.IntegrationTesting var cts = new CancellationTokenSource(); var call = client.StreamingInputCall(cts.Token); + // TODO(jtattermusch): we need this to ensure call has been initiated once we cancel it. + await Task.Delay(1000); cts.Cancel(); try |