Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-09 15:08:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-09 15:08:25 +0300
commit48d25238c386a89e8a6af218eeb290936a8f7595 (patch)
tree68943880d54468655d103dd6ef0aafbba246c532 /workhorse/internal/api
parent5f2a8d5813e1123f06fa7b43d404ea524d9215fc (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/internal/api')
-rw-r--r--workhorse/internal/api/block_test.go4
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())