Skip to content

Commit

Permalink
Update instrumentation/net/http/otelhttp/test/transport_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Damien Mathieu <[email protected]>
  • Loading branch information
luca-filipponi and dmathieu authored Aug 21, 2024
1 parent 014e0bf commit 710e12a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion instrumentation/net/http/otelhttp/test/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ func TestDefaultAttributesHandling(t *testing.T) {
r, err := http.NewRequest(http.MethodGet, ts.URL, nil)
require.NoError(t, err)

_, err = client.Do(r)
resp, err := client.Do(r)
resp.Body.Close()
require.NoError(t, err)

err = reader.Collect(ctx, &rm)
Expand Down

0 comments on commit 710e12a

Please sign in to comment.