diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2021-09-08 08:52:53 +0000 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2021-09-08 08:52:53 +0000 |
commit | 07bbfd279bc236229d95942372370b955db08b75 (patch) | |
tree | 41f0f8217f5355ba86aae8b352633fbb80e21a1a /client/httpsclient_test.go | |
parent | 81e580997d07a7a9d3dddbd42cbb39f305c63b8b (diff) | |
parent | 087c010c476ed6c009b6c94a76a7e9db3b9d3fdd (diff) | |
download | gitlab-shell-07bbfd279bc236229d95942372370b955db08b75.tar.gz |
Merge branch 'remove/ioutil' into 'main'
refactor: move away from ioutil (deprecated)
See merge request gitlab-org/gitlab-shell!511
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") }) |