mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
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:
committed by
Nick Craig-Wood
parent
2a2fcf1012
commit
ec7cc2b3c3
@ -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]
|
||||
|
Reference in New Issue
Block a user