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:
parent
2a2fcf1012
commit
ec7cc2b3c3
5 changed files with 33 additions and 37 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue