We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dacf08 commit ba543aeCopy full SHA for ba543ae
pkg/notifier/gchat_test.go
@@ -18,7 +18,7 @@ package notifier
18
19
import (
20
"encoding/json"
21
- "io/ioutil"
+ "io"
22
"net/http"
23
"net/http/httptest"
24
"testing"
@@ -34,7 +34,7 @@ func TestGChat_Post(t *testing.T) {
34
}
35
36
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
37
- b, err := ioutil.ReadAll(r.Body)
+ b, err := io.ReadAll(r.Body)
38
require.NoError(t, err)
39
40
var payload = GChatPayload{}
0 commit comments