We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c41117 commit 22443bcCopy full SHA for 22443bc
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"
@@ -381,7 +381,7 @@ func TestAuthorizationHeader(t *testing.T) {
381
func TestPayload(t *testing.T) {
382
n := mockNotification()
383
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
384
- body, err := ioutil.ReadAll(r.Body)
+ body, err := io.ReadAll(r.Body)
385
assert.NoError(t, err)
386
assert.Equal(t, n.Payload, body)
387
}))
0 commit comments