From 12b7fd12875c6bd23e77664fd6cad5bc44ac3738 Mon Sep 17 00:00:00 2001 From: abhishek kumar tiwari Date: Wed, 14 Aug 2024 20:01:20 +0530 Subject: [PATCH] Update test/integration/testhelper.go Co-authored-by: Bharath KKB --- test/integration/testhelper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/testhelper.go b/test/integration/testhelper.go index 92706251..e54d5875 100644 --- a/test/integration/testhelper.go +++ b/test/integration/testhelper.go @@ -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 }