Skip to content

Commit 3c0fae5

Browse files
authored
Merge pull request #409 from testwill/ioutil
chore: remove refs to deprecated io/ioutil
2 parents 2695361 + 838d2fd commit 3c0fae5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/handler3/handler_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"bytes"
2121
"fmt"
2222
"io"
23-
"io/ioutil"
2423
"mime"
2524
"net/http"
2625
"net/http/httptest"
@@ -464,7 +463,7 @@ func getDiscovery(server *httptest.Server, path string) (*OpenAPIV3Discovery, st
464463
if resp.StatusCode != 200 {
465464
return nil, "", fmt.Errorf("unexpected response status code, want: %v, got: %v", 200, resp.StatusCode)
466465
}
467-
body, err := ioutil.ReadAll(resp.Body)
466+
body, err := io.ReadAll(resp.Body)
468467
if err != nil {
469468
return nil, "", fmt.Errorf("Failed to read request body: %v", err)
470469
}

0 commit comments

Comments
 (0)