aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/csharp/Grpc.Core.Tests/ClientServerTest.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs
index 26a1a683ba..caa6220f2c 100644
--- a/src/csharp/Grpc.Core.Tests/ClientServerTest.cs
+++ b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs
@@ -82,8 +82,6 @@ namespace Grpc.Core.Tests
[SetUp]
public void Init()
{
- GrpcEnvironment.Initialize();
-
server = new Server();
server.AddServiceDefinition(ServiceDefinition);
int port = server.AddListeningPort(Host + ":0");
@@ -137,7 +135,7 @@ namespace Grpc.Core.Tests
[Test]
public void AsyncUnaryCall_ServerHandlerThrows()
{
- Task.Run(async () =>
+ Task.Run(async () =>
{
var call = new Call<string, string>(ServiceName, EchoMethod, channel, Metadata.Empty);
try
@@ -147,7 +145,7 @@ namespace Grpc.Core.Tests
}
catch (RpcException e)
{
- Assert.AreEqual(StatusCode.Unknown, e.Status.StatusCode);
+ Assert.AreEqual(StatusCode.Unknown, e.Status.StatusCode);
}
}).Wait();
}