summaryrefslogtreecommitdiff
path: root/internal/command/lfsauthenticate/lfsauthenticate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/lfsauthenticate/lfsauthenticate_test.go')
-rw-r--r--internal/command/lfsauthenticate/lfsauthenticate_test.go6
1 files changed, 3 insertions, 3 deletions
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)