aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core.Tests/ServerTest.cs
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-01-04 16:08:47 -0800
committerGravatar Craig Tiller <ctiller@google.com>2016-01-04 16:08:47 -0800
commit6a56221f280742c97dedca04896d5e6a5493f54e (patch)
tree7e22e5de2c0e5bb5d96094d7475ffea19ee85820 /src/csharp/Grpc.Core.Tests/ServerTest.cs
parent8525354f4f4b5023fa25188cd5ce00750bab57ca (diff)
parent7d075631e6b0bb9a381bce75bca363ebee236acc (diff)
Merge github.com:grpc/grpc into ints
Diffstat (limited to 'src/csharp/Grpc.Core.Tests/ServerTest.cs')
-rw-r--r--src/csharp/Grpc.Core.Tests/ServerTest.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/csharp/Grpc.Core.Tests/ServerTest.cs b/src/csharp/Grpc.Core.Tests/ServerTest.cs
index e7193c843b..b40508accc 100644
--- a/src/csharp/Grpc.Core.Tests/ServerTest.cs
+++ b/src/csharp/Grpc.Core.Tests/ServerTest.cs
@@ -54,6 +54,17 @@ namespace Grpc.Core.Tests
}
[Test]
+ public void StartAndKillServer()
+ {
+ Server server = new Server
+ {
+ Ports = { new ServerPort("localhost", ServerPort.PickUnused, ServerCredentials.Insecure) }
+ };
+ server.Start();
+ server.KillAsync().Wait();
+ }
+
+ [Test]
public void PickUnusedPort()
{
Server server = new Server