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:
Diffstat (limited to 'workhorse/internal/badgateway/roundtripper_test.go')
-rw-r--r--workhorse/internal/badgateway/roundtripper_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/badgateway/roundtripper_test.go b/workhorse/internal/badgateway/roundtripper_test.go
index fc7132f9bd7..b59cb8d2c5b 100644
--- a/workhorse/internal/badgateway/roundtripper_test.go
+++ b/workhorse/internal/badgateway/roundtripper_test.go
@@ -2,7 +2,7 @@ package badgateway
import (
"errors"
- "io/ioutil"
+ "io"
"net/http"
"testing"
@@ -45,7 +45,7 @@ func TestErrorPage502(t *testing.T) {
require.NoError(t, err, "perform roundtrip")
defer response.Body.Close()
- body, err := ioutil.ReadAll(response.Body)
+ body, err := io.ReadAll(response.Body)
require.NoError(t, err)
require.Equal(t, tc.contentType, response.Header.Get("content-type"), "content type")