Skip to content

Commit

Permalink
Merge pull request #226 from testwill/ioutil
Browse files Browse the repository at this point in the history
chore: remove refs to deprecated io/ioutil
  • Loading branch information
manicminer committed May 13, 2024
2 parents d969eaa + f3e9417 commit 490fc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roundtripper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package retryablehttp
import (
"context"
"errors"
"io/ioutil"
"io"
"net"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -88,7 +88,7 @@ func TestRoundTripper_RoundTrip(t *testing.T) {
if resp.StatusCode != 200 {
t.Fatalf("expected 200, got %d", resp.StatusCode)
}
if v, err := ioutil.ReadAll(resp.Body); err != nil {
if v, err := io.ReadAll(resp.Body); err != nil {
t.Fatal(err)
} else if string(v) != "success!" {
t.Fatalf("expected %q, got %q", "success!", v)
Expand Down

0 comments on commit 490fc06

Please sign in to comment.