Skip to content
Snippets Groups Projects
Commit 1b8210f5 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix completion queue test

parent 62d6c20f
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,8 @@ namespace Grpc.Core.Tests
[Test]
public void CompletionQueueCreateDestroyBenchmark()
{
GrpcEnvironment.AddRef(); // completion queue requires gRPC environment being initialized.
BenchmarkUtil.RunBenchmark(
10, 10,
() =>
......@@ -66,6 +68,8 @@ namespace Grpc.Core.Tests
CompletionQueueSafeHandle cq = CompletionQueueSafeHandle.Create();
cq.Dispose();
});
GrpcEnvironment.Release();
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment