Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 0dc1db5

Browse files
committed
Use ioutil.ReadAll instead of io.ReadAll
We are declaring Go 1.14 for this library, so the new io.ReadAll function doesn't exist (yet). Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
1 parent 0945c55 commit 0dc1db5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"encoding/json"
66
"errors"
7-
"io"
7+
"io/ioutil"
88
"net/http"
99
"net/http/httptest"
1010
"net/url"
@@ -194,7 +194,7 @@ func TestClient_requestWithRetries(t *testing.T) {
194194

195195
try++
196196

197-
got, err := io.ReadAll(r.Body)
197+
got, err := ioutil.ReadAll(r.Body)
198198
if err != nil {
199199
t.Errorf("retry %d: unexpected error reading body: %v", try, err)
200200
}

0 commit comments

Comments
 (0)