Skip to content

Commit 490fc06

Browse files
authored
Merge pull request #226 from testwill/ioutil
chore: remove refs to deprecated io/ioutil
2 parents d969eaa + f3e9417 commit 490fc06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundtripper_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package retryablehttp
66
import (
77
"context"
88
"errors"
9-
"io/ioutil"
9+
"io"
1010
"net"
1111
"net/http"
1212
"net/http/httptest"
@@ -88,7 +88,7 @@ func TestRoundTripper_RoundTrip(t *testing.T) {
8888
if resp.StatusCode != 200 {
8989
t.Fatalf("expected 200, got %d", resp.StatusCode)
9090
}
91-
if v, err := ioutil.ReadAll(resp.Body); err != nil {
91+
if v, err := io.ReadAll(resp.Body); err != nil {
9292
t.Fatal(err)
9393
} else if string(v) != "success!" {
9494
t.Fatalf("expected %q, got %q", "success!", v)

0 commit comments

Comments
 (0)