Skip to content

Commit

Permalink
Update instrumentation/net/http/otelhttp/transport_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
adamdecaf and MrAlias committed Apr 7, 2022
1 parent 60d9ca2 commit c30f5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instrumentation/net/http/otelhttp/transport_test.go
Expand Up @@ -285,7 +285,7 @@ func TestWrappedBodyClosePanic(t *testing.T) {
s := new(span)
var body io.ReadCloser
wb := newWrappedBody(s, body)
assert.NoError(t, wb.Close())
assert.NotPanics(t, func() { wb.Close() }, "nil body should not panic on close")
}

func TestWrappedBodyCloseError(t *testing.T) {
Expand Down

0 comments on commit c30f5a2

Please sign in to comment.