diff options
author | 2015-05-06 16:37:12 -0700 | |
---|---|---|
committer | 2015-05-07 09:14:13 -0700 | |
commit | 03e82e2cdffbc0d4c19cea9d16e24d0dbf353376 (patch) | |
tree | 77e4c484b4666391c40241d51ffeaea1c2c7ea36 /src/csharp/Grpc.Examples.Tests | |
parent | 8ab1f7ed3d2f8af7702df95139a6b62aa76b5f0e (diff) |
Split address passed to AddListeningPort into host and port
Diffstat (limited to 'src/csharp/Grpc.Examples.Tests')
-rw-r--r-- | src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs index 332795e0e5..4ada95edd6 100644 --- a/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs +++ b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs @@ -59,7 +59,7 @@ namespace math.Tests server = new Server(); server.AddServiceDefinition(MathGrpc.BindService(new MathServiceImpl())); - int port = server.AddListeningPort(host + ":0"); + int port = server.AddListeningPort(host, Server.PickUnusedPort); server.Start(); channel = new Channel(host + ":" + port); |