Skip to content

Commit 22443bc

Browse files
authored
Change ioutil to io (#232)
1 parent 8c41117 commit 22443bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"crypto/tls"
99
"errors"
1010
"fmt"
11-
"io/ioutil"
11+
"io"
1212
"net"
1313
"net/http"
1414
"net/http/httptest"
@@ -381,7 +381,7 @@ func TestAuthorizationHeader(t *testing.T) {
381381
func TestPayload(t *testing.T) {
382382
n := mockNotification()
383383
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
384-
body, err := ioutil.ReadAll(r.Body)
384+
body, err := io.ReadAll(r.Body)
385385
assert.NoError(t, err)
386386
assert.Equal(t, n.Payload, body)
387387
}))

0 commit comments

Comments
 (0)