Skip to content

Commit

Permalink
Merge pull request #1045 from DiptoChakrabarty/replaceioutil
Browse files Browse the repository at this point in the history
Replace ioutil in testing of gchat
  • Loading branch information
stefanprodan authored Nov 9, 2021
2 parents 7f5a9ed + 0bb3815 commit 6b11e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/notifier/gchat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package notifier

import (
"encoding/json"
"io/ioutil"
"io"
"net/http"
"net/http/httptest"
"testing"
Expand All @@ -34,7 +34,7 @@ func TestGChat_Post(t *testing.T) {
}

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

var payload = GChatPayload{}
Expand Down

0 comments on commit 6b11e97

Please sign in to comment.