Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed May 11, 2024
1 parent d969eaa commit f3e9417
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 f3e9417

Please sign in to comment.