Skip to content

Commit

Permalink
replace ioutil in testing of gchat
Browse files Browse the repository at this point in the history
Signed-off-by: DiptoChakrabarty <diptochuck123@gmail.com>
  • Loading branch information
DiptoChakrabarty committed Nov 1, 2021
1 parent 2dacf08 commit 0bb3815
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 0bb3815

Please sign in to comment.