We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d8e9cc commit 00e2e9cCopy full SHA for 00e2e9c
1 file changed
integrations/webhook/webhook_test.go
@@ -1,7 +1,7 @@
1
package webhook
2
3
import (
4
- "io/ioutil"
+ "io"
5
"net/http"
6
"net/http/httptest"
7
"sync/atomic"
@@ -14,7 +14,7 @@ func TestSink_OnEventPostsToEndpoints(t *testing.T) {
14
var hits int32
15
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
16
atomic.AddInt32(&hits, 1)
17
- _, _ = ioutil.ReadAll(r.Body)
+ _, _ = io.ReadAll(r.Body)
18
_ = r.Body.Close()
19
}))
20
defer srv.Close()
@@ -26,4 +26,3 @@ func TestSink_OnEventPostsToEndpoints(t *testing.T) {
26
t.Fatalf("expected 1 hit, got %d", hits)
27
}
28
29
-
0 commit comments