Skip to content

Commit

Permalink
adjust mock
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress committed Mar 7, 2024
1 parent cc94a68 commit d74c168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/requester/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d74c168

Please sign in to comment.