diff --git a/test/framework/http/response.go b/test/framework/http/response.go index 3c6418f40..9b7ff4625 100644 --- a/test/framework/http/response.go +++ b/test/framework/http/response.go @@ -1,7 +1,7 @@ package http import ( - "io/ioutil" + "io" gohttp "net/http" ) @@ -12,7 +12,7 @@ type Response struct { func buildResponse(resp *gohttp.Response) (Response, error) { defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return Response{}, err }