Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache')
-rw-r--r--internal/cache/diskcache_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/cache/diskcache_test.go b/internal/cache/diskcache_test.go
index af858cbc9..04bc54964 100644
--- a/internal/cache/diskcache_test.go
+++ b/internal/cache/diskcache_test.go
@@ -3,7 +3,6 @@ package cache
import (
"context"
"io"
- "io/ioutil"
"strings"
"sync"
"testing"
@@ -49,7 +48,7 @@ func TestStreamDBNaiveKeyer(t *testing.T) {
expectGetHit := func(expectStr string, req *gitalypb.InfoRefsRequest) {
actualStream, err := cache.GetStream(ctx, req.Repository, req)
require.NoError(t, err)
- actualBytes, err := ioutil.ReadAll(actualStream)
+ actualBytes, err := io.ReadAll(actualStream)
require.NoError(t, err)
require.Equal(t, expectStr, string(actualBytes))
}