lib/http: Simplify server.go to export an http server rather than an interface

This also makes the implementation public.
This commit is contained in:
Tom Mombourquette 2022-11-23 05:44:53 -04:00 committed by Nick Craig-Wood
parent 2a2fcf1012
commit ec7cc2b3c3
5 changed files with 33 additions and 37 deletions

View file

@ -26,7 +26,7 @@ func testExpectRespBody(t *testing.T, resp *http.Response, expected []byte) {
require.Equal(t, expected, body)
}
func testGetServerURL(t *testing.T, s Server) string {
func testGetServerURL(t *testing.T, s *Server) string {
urls := s.URLs()
require.GreaterOrEqual(t, len(urls), 1, "server should return at least one url")
return urls[0]