From 3924fa0080929a3ebcf599f993b7cc8a3990049e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6llner?= Date: Thu, 23 Apr 2020 21:54:17 +0200 Subject: [PATCH] fixed cancelation race in test case InterceptClientSideOverrideCanceledCall --- Capnp.Net.Runtime.Tests/Interception.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Capnp.Net.Runtime.Tests/Interception.cs b/Capnp.Net.Runtime.Tests/Interception.cs index dee17a0..8eaaa4b 100644 --- a/Capnp.Net.Runtime.Tests/Interception.cs +++ b/Capnp.Net.Runtime.Tests/Interception.cs @@ -301,10 +301,10 @@ namespace Capnp.Net.Runtime.Tests client.WhenConnected.Wait(); var counters = new Counters(); - server.Main = new TestInterfaceImpl(counters); - using (var main = policy.Attach(client.GetMain())) + server.Main = new TestMoreStuffImpl(counters); + using (var main = policy.Attach(client.GetMain())) { - var request1 = main.Foo(321, false, new CancellationToken(true)); + var request1 = main.NeverReturn(new TestInterfaceImpl(new Counters()), new CancellationToken(true)); Assert.IsTrue(policy.Calls.TryReceive(out var cc)); Assert.IsFalse(request1.IsCompleted); Assert.IsTrue(cc.CancelFromAlice.IsCancellationRequested);