|
@@ -41,14 +41,16 @@ namespace Grpc.Core.Tests
|
|
public class GrpcEnvironmentTest
|
|
public class GrpcEnvironmentTest
|
|
{
|
|
{
|
|
[Test]
|
|
[Test]
|
|
- public void InitializeAndShutdownGrpcEnvironment() {
|
|
|
|
|
|
+ public void InitializeAndShutdownGrpcEnvironment()
|
|
|
|
+ {
|
|
GrpcEnvironment.Initialize();
|
|
GrpcEnvironment.Initialize();
|
|
Assert.IsNotNull(GrpcEnvironment.ThreadPool.CompletionQueue);
|
|
Assert.IsNotNull(GrpcEnvironment.ThreadPool.CompletionQueue);
|
|
GrpcEnvironment.Shutdown();
|
|
GrpcEnvironment.Shutdown();
|
|
}
|
|
}
|
|
|
|
|
|
[Test]
|
|
[Test]
|
|
- public void SubsequentInvocations() {
|
|
|
|
|
|
+ public void SubsequentInvocations()
|
|
|
|
+ {
|
|
GrpcEnvironment.Initialize();
|
|
GrpcEnvironment.Initialize();
|
|
GrpcEnvironment.Initialize();
|
|
GrpcEnvironment.Initialize();
|
|
GrpcEnvironment.Shutdown();
|
|
GrpcEnvironment.Shutdown();
|
|
@@ -56,7 +58,8 @@ namespace Grpc.Core.Tests
|
|
}
|
|
}
|
|
|
|
|
|
[Test]
|
|
[Test]
|
|
- public void InitializeAfterShutdown() {
|
|
|
|
|
|
+ public void InitializeAfterShutdown()
|
|
|
|
+ {
|
|
GrpcEnvironment.Initialize();
|
|
GrpcEnvironment.Initialize();
|
|
var tp1 = GrpcEnvironment.ThreadPool;
|
|
var tp1 = GrpcEnvironment.ThreadPool;
|
|
GrpcEnvironment.Shutdown();
|
|
GrpcEnvironment.Shutdown();
|