diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-13 14:46:01 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-13 14:46:01 -0600 |
| commit | 9fbd377052135a17575e0b0d79ed245a863288c4 (patch) | |
| tree | bfea465959b607da09dd24b0dd46fc1b9b4840b8 /test | |
| parent | 61221d33bb69ec4d8bffcd6107f05641df9d117c (diff) | |
test: check for error before logging
Diffstat (limited to 'test')
| -rw-r--r-- | test/integration/http.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/http.go b/test/integration/http.go index 951d971..43ebac3 100644 --- a/test/integration/http.go +++ b/test/integration/http.go @@ -15,7 +15,8 @@ type testTransport struct { func (r *testTransport) RoundTrip(request *http.Request) (*http.Response, error) { response, err := http.DefaultTransport.RoundTrip(request) - r.t.Logf("%v %v %v %v\n", request.Method, request.URL, response.StatusCode, err) + require.NoError(r.t, err) + r.t.Logf("%v %v %v\n", response.StatusCode, request.Method, request.URL) return response, err } |
