From 513c8fcedfdce4c7cd0db4c05844632e611c143e Mon Sep 17 00:00:00 2001 From: komisan19 Date: Sat, 29 Jul 2023 07:33:43 +0900 Subject: [PATCH] test/framework: replace deprecated ioutil.ReadAll (#3256) * test/framework: replace deprecated ioutil * fix: change to os -> io --- test/framework/http/response.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }