testServer is a server than can be stopped and resumed without closing the listener. This guarantees the same port number (and address) is used after restart. When a server is stopped, it accepts and closes all tcp connections from clients.
| 1137 | // after restart. When a server is stopped, it accepts and closes all tcp |
| 1138 | // connections from clients. |
| 1139 | type testServer struct { |
| 1140 | stubserver.StubServer |
| 1141 | lis *testutils.RestartableListener |
| 1142 | } |
| 1143 | |
| 1144 | func (s *testServer) stop() { |
| 1145 | s.lis.Stop() |
nothing calls this directly
no outgoing calls
no test coverage detected