Skip to content

Commit

Permalink
fix stackoverflow in ReadFrom - failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Nov 21, 2023
1 parent a95ea5f commit 33e30f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions http/interceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ func TestReadFrom(t *testing.T) {
t.Errorf("unexpected error: %v", err)
}

_, err = rw.(io.ReaderFrom).ReadFrom(struct{ io.Reader }{bytes.NewBuffer([]byte("hello world"))})
if err != nil {
t.Errorf("unexpected error: %v", err)
}

err = responseProcessor(tx, req)
if err != nil {
t.Errorf("unexpected error: %v", err)
Expand Down

0 comments on commit 33e30f3

Please sign in to comment.