We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6572a53 commit 039fe1bCopy full SHA for 039fe1b
client_test.go
@@ -8,7 +8,7 @@ import (
8
"crypto/tls"
9
"errors"
10
"fmt"
11
- "io/ioutil"
+ "io"
12
"net"
13
"net/http"
14
"net/http/httptest"
@@ -351,7 +351,7 @@ func TestAuthorizationHeader(t *testing.T) {
351
func TestPayload(t *testing.T) {
352
n := mockNotification()
353
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
354
- body, err := ioutil.ReadAll(r.Body)
+ body, err := io.ReadAll(r.Body)
355
assert.NoError(t, err)
356
assert.Equal(t, n.Payload, body)
357
}))
0 commit comments