[#577] Remove usages of deprecated io/ioutil
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
e285ed313b
commit
1987f271f9
2 changed files with 3 additions and 4 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"crypto/rand"
|
||||
"crypto/sha256"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -22,7 +22,7 @@ func TestWrapReader(t *testing.T) {
|
|||
streamHash.Write(buf)
|
||||
})
|
||||
|
||||
dst, err := ioutil.ReadAll(wrappedReader)
|
||||
dst, err := io.ReadAll(wrappedReader)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, src, dst)
|
||||
require.Equal(t, h[:], streamHash.Sum(nil))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue