Skip to content
Snippets Groups Projects
Commit ceaa3c81 authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #4468 from jtattermusch/csharp_server_kill_test

Add simple StartAndKillServer test
parents 648da525 9bbb1f92
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,17 @@ namespace Grpc.Core.Tests ...@@ -53,6 +53,17 @@ namespace Grpc.Core.Tests
server.ShutdownAsync().Wait(); server.ShutdownAsync().Wait();
} }
[Test]
public void StartAndKillServer()
{
Server server = new Server
{
Ports = { new ServerPort("localhost", ServerPort.PickUnused, ServerCredentials.Insecure) }
};
server.Start();
server.KillAsync().Wait();
}
[Test] [Test]
public void PickUnusedPort() public void PickUnusedPort()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment