diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/testutils/mocked_http_service.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/testutils/mocked_http_service.go b/utils/testutils/mocked_http_service.go index b1e7f6963..8f9bc42be 100644 --- a/utils/testutils/mocked_http_service.go +++ b/utils/testutils/mocked_http_service.go @@ -4,6 +4,7 @@ package testutils import ( + "github.com/mattermost/mattermost-server/services/httpservice" "net/http" "net/http/httptest" ) @@ -18,8 +19,8 @@ func MakeMockedHTTPService(handler http.Handler) *MockedHTTPService { } } -func (h *MockedHTTPService) MakeClient(trustURLs bool) *http.Client { - return h.Server.Client() +func (h *MockedHTTPService) MakeClient(trustURLs bool) *httpservice.Client { + return &httpservice.Client{Client: h.Server.Client()} } func (h *MockedHTTPService) Close() { |