Skip to content

Commit 039fe1b

Browse files
committed
Change ioutil to io
1 parent 6572a53 commit 039fe1b

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"
@@ -351,7 +351,7 @@ func TestAuthorizationHeader(t *testing.T) {
351351
func TestPayload(t *testing.T) {
352352
n := mockNotification()
353353
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
354-
body, err := ioutil.ReadAll(r.Body)
354+
body, err := io.ReadAll(r.Body)
355355
assert.NoError(t, err)
356356
assert.Equal(t, n.Payload, body)
357357
}))

0 commit comments

Comments
 (0)