aboutsummaryrefslogtreecommitdiff
path: root/internal/route/lfs/basic_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/lfs/basic_test.go')
-rw-r--r--internal/route/lfs/basic_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/route/lfs/basic_test.go b/internal/route/lfs/basic_test.go
index db5fb9de..74c837d6 100644
--- a/internal/route/lfs/basic_test.go
+++ b/internal/route/lfs/basic_test.go
@@ -7,7 +7,6 @@ package lfs
import (
"bytes"
"io"
- "io/ioutil"
"net/http"
"net/http/httptest"
"strings"
@@ -133,7 +132,7 @@ func Test_basicHandler_serveDownload(t *testing.T) {
assert.Equal(t, test.expStatusCode, resp.StatusCode)
assert.Equal(t, test.expHeader, resp.Header)
- body, err := ioutil.ReadAll(resp.Body)
+ body, err := io.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)
}
@@ -199,7 +198,7 @@ func Test_basicHandler_serveUpload(t *testing.T) {
resp := rr.Result()
assert.Equal(t, test.expStatusCode, resp.StatusCode)
- body, err := ioutil.ReadAll(resp.Body)
+ body, err := io.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)
}
@@ -280,7 +279,7 @@ func Test_basicHandler_serveVerify(t *testing.T) {
resp := rr.Result()
assert.Equal(t, test.expStatusCode, resp.StatusCode)
- body, err := ioutil.ReadAll(resp.Body)
+ body, err := io.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)
}