delete io/ioutil package. (#5955)

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
杨刚 (成都)
2023-03-16 09:25:58 +08:00
committed by GitHub
parent 1d8ca4f2ef
commit ad9c6e8dee
31 changed files with 92 additions and 83 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ package framework
import (
"bytes"
"io/ioutil"
"io"
"testing"
"github.com/stretchr/testify/assert"
@@ -59,7 +59,7 @@ func TestStreamReader(t *testing.T) {
close: rdr.CloseSend,
}
res, err := ioutil.ReadAll(sr)
res, err := io.ReadAll(sr)
require.Nil(t, err)
assert.Equal(t, s, string(res))