Skip to content

Commit ba543ae

Browse files
replace ioutil in testing of gchat
1 parent 2dacf08 commit ba543ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/notifier/gchat_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ package notifier
1818

1919
import (
2020
"encoding/json"
21-
"io/ioutil"
21+
"io"
2222
"net/http"
2323
"net/http/httptest"
2424
"testing"
@@ -34,7 +34,7 @@ func TestGChat_Post(t *testing.T) {
3434
}
3535

3636
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
37-
b, err := ioutil.ReadAll(r.Body)
37+
b, err := io.ReadAll(r.Body)
3838
require.NoError(t, err)
3939

4040
var payload = GChatPayload{}

0 commit comments

Comments
 (0)