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) }))