Skip to content

Commit

Permalink
Update test/integration/testhelper.go
Browse files Browse the repository at this point in the history
Co-authored-by: Bharath KKB <[email protected]>
  • Loading branch information
q2w and bharathkkb authored Aug 14, 2024
1 parent daa50a1 commit 12b7fd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/testhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ func httpGetRequest(url string) (t *testing.T, statusCode int, body string, err
defer res.Body.Close()

buffer, err := io.ReadAll(res.Body)
if err != nil {
t.Fatalf("reading response body unexpected err: %v", err)
}
return res.StatusCode, string(buffer), err
}

0 comments on commit 12b7fd1

Please sign in to comment.