diff --git a/pkg/internal/requester/mock.go b/pkg/internal/requester/mock.go index eb6d1e5b..ea0a043d 100644 --- a/pkg/internal/requester/mock.go +++ b/pkg/internal/requester/mock.go @@ -60,7 +60,7 @@ func NewRequestWithHTTPServerUnavailableMock() (*httptest.Server, *http.Request) func NewRequestWithHTTPServerOKMock() (*httptest.Server, *http.Request) { s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - http.ResponseWriter.Write(w, []byte(`{id:1}`)) + _, _ = http.ResponseWriter.Write(w, []byte(`{id:1}`)) })) request, _ := http.NewRequestWithContext(context.Background(), http.MethodGet, s.URL, nil)