Skip to content

Commit

Permalink
Change ioutil to io (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshow authored Oct 24, 2024
1 parent 8c41117 commit 22443bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"io/ioutil"
"io"
"net"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -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)
}))
Expand Down

0 comments on commit 22443bc

Please sign in to comment.