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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-16 15:15:24 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-20 17:22:33 +0300
commit127ca6b9de8d5cca31db5e2345519cf39b0a0e29 (patch)
tree74d34290ed1e9ca3b356094e68ff5ef7504fa8b9 /streamio
parent4311879356b4a4fcb704373b33afd41148e34fc7 (diff)
global: Replace deprecated usage of `ioutil.ReadAll()`
With Go 1.16, the ioutil package was deprecated. Replace our usage of `ioutil.ReadAll()` with `io.ReadAll()` to adapt accordingly.
Diffstat (limited to 'streamio')
-rw-r--r--streamio/stream_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/streamio/stream_test.go b/streamio/stream_test.go
index 2e879ab55..c91d5a58f 100644
--- a/streamio/stream_test.go
+++ b/streamio/stream_test.go
@@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
- "io/ioutil"
"strings"
"sync"
"testing"
@@ -26,7 +25,7 @@ func TestReceiveSources(t *testing.T) {
}
for _, tc := range testCases {
- data, err := ioutil.ReadAll(&opaqueReader{NewReader(receiverFromReader(tc.r))})
+ data, err := io.ReadAll(&opaqueReader{NewReader(receiverFromReader(tc.r))})
require.NoError(t, err, tc.desc)
require.Equal(t, testData, string(data), tc.desc)
}