diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-19 15:54:20 +0000 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-08-19 15:54:20 +0000 |
commit | 087c010c476ed6c009b6c94a76a7e9db3b9d3fdd (patch) | |
tree | c68aac4473adea2eae5ead5d49c173f80dac3e8c /client/httpsclient_test.go | |
parent | a83f8b31982222ad64b23a47ee6d092042cf9f1a (diff) | |
download | gitlab-shell-087c010c476ed6c009b6c94a76a7e9db3b9d3fdd.tar.gz |
refactor: move away from ioutil (deprecated)
Diffstat (limited to 'client/httpsclient_test.go')
-rw-r--r-- | client/httpsclient_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/httpsclient_test.go b/client/httpsclient_test.go index be1d49c..d2c2293 100644 --- a/client/httpsclient_test.go +++ b/client/httpsclient_test.go @@ -3,7 +3,7 @@ package client import ( "context" "fmt" - "io/ioutil" + "io" "net/http" "path" "testing" @@ -57,7 +57,7 @@ func TestSuccessfulRequests(t *testing.T) { defer response.Body.Close() - responseBody, err := ioutil.ReadAll(response.Body) + responseBody, err := io.ReadAll(response.Body) require.NoError(t, err) require.Equal(t, string(responseBody), "Hello") }) |