aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs
diff options
context:
space:
mode:
authorGravatar Yuchen Zeng <zyc@google.com>2016-06-08 17:52:05 -0700
committerGravatar Yuchen Zeng <zyc@google.com>2016-06-08 17:52:05 -0700
commit0a0c1b0d59341e2535e27d86f1cd61f6c114b2ed (patch)
tree7910593b0f6919ae7bc8269cb8394f4ac0502fd9 /src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs
parent2bdde23c25b2df3f5b94100226ca2957e4e2cba4 (diff)
parentd861b13aff7481b4901ab012cfd51c5887b11a2e (diff)
Merge remote-tracking branch 'upstream/master' into base64_decode
Diffstat (limited to 'src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs')
-rw-r--r--src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs b/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs
index c6843f10af..e9ec59eb3d 100644
--- a/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs
+++ b/src/csharp/Grpc.Core.Tests/Internal/CompletionQueueSafeHandleTest.cs
@@ -48,7 +48,7 @@ namespace Grpc.Core.Internal.Tests
GrpcEnvironment.AddRef();
var cq = CompletionQueueSafeHandle.Create();
cq.Dispose();
- GrpcEnvironment.Release();
+ GrpcEnvironment.ReleaseAsync().Wait();
}
[Test]
@@ -59,8 +59,8 @@ namespace Grpc.Core.Internal.Tests
cq.Shutdown();
var ev = cq.Next();
cq.Dispose();
- GrpcEnvironment.Release();
- Assert.AreEqual(GRPCCompletionType.Shutdown, ev.type);
+ GrpcEnvironment.ReleaseAsync().Wait();
+ Assert.AreEqual(CompletionQueueEvent.CompletionType.Shutdown, ev.type);
Assert.AreNotEqual(IntPtr.Zero, ev.success);
Assert.AreEqual(IntPtr.Zero, ev.tag);
}