Skip to content

Commit

Permalink
Remove call to Body.Close() from server
Browse files Browse the repository at this point in the history
  • Loading branch information
ankur22 committed Jan 30, 2025
1 parent 09fbe5d commit 522a411
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/js/modules/k6/browser/tests/page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,6 @@ func TestPageOnRequest(t *testing.T) {
tb.withHandler("/api", func(w http.ResponseWriter, r *http.Request) {
body, err := io.ReadAll(r.Body)
require.NoError(t, err)
defer require.NoError(t, r.Body.Close())

var data struct {
Name string `json:"name"`
Expand Down

0 comments on commit 522a411

Please sign in to comment.