diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-09 15:08:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-09 15:08:25 +0300 |
commit | 48d25238c386a89e8a6af218eeb290936a8f7595 (patch) | |
tree | 68943880d54468655d103dd6ef0aafbba246c532 /workhorse/internal/api | |
parent | 5f2a8d5813e1123f06fa7b43d404ea524d9215fc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/internal/api')
-rw-r--r-- | workhorse/internal/api/block_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/api/block_test.go b/workhorse/internal/api/block_test.go index 85ad54f3cfd..0beb401d2f5 100644 --- a/workhorse/internal/api/block_test.go +++ b/workhorse/internal/api/block_test.go @@ -1,7 +1,7 @@ package api import ( - "io/ioutil" + "io" "net/http" "net/http/httptest" "testing" @@ -46,7 +46,7 @@ func TestBlocker(t *testing.T) { rw.Flush() body := rw.Result().Body - data, err := ioutil.ReadAll(body) + data, err := io.ReadAll(body) require.NoError(t, err) require.NoError(t, body.Close()) |