From 087c010c476ed6c009b6c94a76a7e9db3b9d3fdd Mon Sep 17 00:00:00 2001 From: feistel <6742251-feistel@users.noreply.gitlab.com> Date: Thu, 19 Aug 2021 15:54:20 +0000 Subject: refactor: move away from ioutil (deprecated) --- internal/command/lfsauthenticate/lfsauthenticate_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/command/lfsauthenticate/lfsauthenticate_test.go') diff --git a/internal/command/lfsauthenticate/lfsauthenticate_test.go b/internal/command/lfsauthenticate/lfsauthenticate_test.go index 63aecb0..63124f5 100644 --- a/internal/command/lfsauthenticate/lfsauthenticate_test.go +++ b/internal/command/lfsauthenticate/lfsauthenticate_test.go @@ -4,7 +4,7 @@ import ( "bytes" "context" "encoding/json" - "io/ioutil" + "io" "net/http" "testing" @@ -70,7 +70,7 @@ func TestLfsAuthenticateRequests(t *testing.T) { { Path: "/api/v4/internal/lfs_authenticate", Handler: func(w http.ResponseWriter, r *http.Request) { - b, err := ioutil.ReadAll(r.Body) + b, err := io.ReadAll(r.Body) defer r.Body.Close() require.NoError(t, err) @@ -94,7 +94,7 @@ func TestLfsAuthenticateRequests(t *testing.T) { { Path: "/api/v4/internal/allowed", Handler: func(w http.ResponseWriter, r *http.Request) { - b, err := ioutil.ReadAll(r.Body) + b, err := io.ReadAll(r.Body) defer r.Body.Close() require.NoError(t, err) -- cgit v1.2.1