| 89 | }; |
| 90 | |
| 91 | TEST_F(TCPSocketServerTest, exitsOnFirstConnectionClosed) { |
| 92 | // given |
| 93 | asio::ip::tcp::iostream client(server->listenEndpoint()); |
| 94 | ASSERT_THAT(client, IsConnected()); |
| 95 | ASSERT_THAT(server->listenEndpoint().address().to_string(), std::string("0.0.0.0")); |
| 96 | |
| 97 | // when |
| 98 | client.close(); |
| 99 | |
| 100 | // then |
| 101 | EXPECT_THAT(serverThread, EventuallyTerminates()); |
| 102 | } |
| 103 | |
| 104 | TEST_F(TCPSocketServerTest, moreThanOneClientCanConnect) { |
| 105 | // given |
nothing calls this directly
no test coverage detected