Skip to content

Commit

Permalink
test/framework: replace deprecated ioutil.ReadAll (#3256)
Browse files Browse the repository at this point in the history
* test/framework: replace deprecated ioutil

* fix: change to os -> io
  • Loading branch information
komisan19 committed Jul 28, 2023
1 parent 2081cc5 commit 513c8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/framework/http/response.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package http

import (
"io/ioutil"
"io"
gohttp "net/http"
)

Expand All @@ -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
}
Expand Down

0 comments on commit 513c8fc

Please sign in to comment.