Skip to content

Commit a70c0df

Browse files
architm21rickymoorhouse
authored andcommitted
fix: uses os.NopCloser instead of ioutil ones as its deprecated
Signed-off-by: architm21 <[email protected]>
1 parent 41bd2d9 commit a70c0df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nets/manager/manager_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package manager
22

33
import (
44
"bytes"
5-
"io/ioutil"
5+
"io"
66
"net/http"
77
"net/http/httptest"
88
"strings"
@@ -137,7 +137,7 @@ func MockInvokeAPI(url string, certPath string, token string) (*http.Response, e
137137
json = `{"cloud_id":"123445","cloud_name":"test-cloud","counts":{"provider_orgs":23}}`
138138
}
139139

140-
body := ioutil.NopCloser(bytes.NewReader([]byte(json)))
140+
body := io.NopCloser(bytes.NewReader([]byte(json)))
141141
r := http.Response{
142142
StatusCode: 200,
143143
Body: body,

0 commit comments

Comments
 (0)