Skip to content

Commit

Permalink
fix: err check at correct place (#1945)
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek authored Aug 28, 2023
1 parent 4af9c39 commit 549aee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testhttp/testhttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func TestUrl(t *testing.T, method string, bodyData string, url string, headers u

client := &http.Client{Timeout: time.Second * 15}
resp, err := client.Do(req)
assert.NilError(t, err)

t.Logf("%s %v -> %v", method, url, resp.Status)
assert.NilError(t, err)
defer func() {
_ = resp.Body.Close()
}()
Expand Down

0 comments on commit 549aee4

Please sign in to comment.