aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core.Tests/ServerTest.cs
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-05-06 16:37:12 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-05-07 09:14:13 -0700
commit03e82e2cdffbc0d4c19cea9d16e24d0dbf353376 (patch)
tree77e4c484b4666391c40241d51ffeaea1c2c7ea36 /src/csharp/Grpc.Core.Tests/ServerTest.cs
parent8ab1f7ed3d2f8af7702df95139a6b62aa76b5f0e (diff)
Split address passed to AddListeningPort into host and port
Diffstat (limited to 'src/csharp/Grpc.Core.Tests/ServerTest.cs')
-rw-r--r--src/csharp/Grpc.Core.Tests/ServerTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core.Tests/ServerTest.cs b/src/csharp/Grpc.Core.Tests/ServerTest.cs
index 2a1855da67..02c773c9cc 100644
--- a/src/csharp/Grpc.Core.Tests/ServerTest.cs
+++ b/src/csharp/Grpc.Core.Tests/ServerTest.cs
@@ -47,7 +47,7 @@ namespace Grpc.Core.Tests
GrpcEnvironment.Initialize();
Server server = new Server();
- server.AddListeningPort("localhost:0");
+ server.AddListeningPort("localhost", Server.PickUnusedPort);
server.Start();
server.ShutdownAsync().Wait();