From 22443bc957912b3edcea972c4103a91e0f95931f Mon Sep 17 00:00:00 2001 From: Adam Jones Date: Thu, 24 Oct 2024 16:43:01 +1300 Subject: [PATCH] Change ioutil to io (#232) --- client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_test.go b/client_test.go index 60fd058..9c83d78 100644 --- a/client_test.go +++ b/client_test.go @@ -8,7 +8,7 @@ import ( "crypto/tls" "errors" "fmt" - "io/ioutil" + "io" "net" "net/http" "net/http/httptest" @@ -381,7 +381,7 @@ func TestAuthorizationHeader(t *testing.T) { func TestPayload(t *testing.T) { n := mockNotification() server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - body, err := ioutil.ReadAll(r.Body) + body, err := io.ReadAll(r.Body) assert.NoError(t, err) assert.Equal(t, n.Payload, body) }))