diff options
Diffstat (limited to 'internal/serving/disk/local/serving_test.go')
-rw-r--r-- | internal/serving/disk/local/serving_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/serving/disk/local/serving_test.go b/internal/serving/disk/local/serving_test.go index 2602451f..8352bfc9 100644 --- a/internal/serving/disk/local/serving_test.go +++ b/internal/serving/disk/local/serving_test.go @@ -1,7 +1,7 @@ package local import ( - "io/ioutil" + "io" "net/http" "net/http/httptest" "testing" @@ -82,7 +82,7 @@ func TestDisk_ServeFileHTTP(t *testing.T) { defer resp.Body.Close() require.Equal(t, test.expectedStatus, resp.StatusCode) - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) require.NoError(t, err) require.Contains(t, string(body), test.expectedBody) |