chore: remove refs to deprecated io/ioutil

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu
2023-06-14 16:33:24 +08:00
parent 5e5b9d564c
commit be63e1ef7c

View File

@@ -7,7 +7,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"runtime"
"testing"
@@ -65,7 +64,7 @@ func unzipAllResourcesTestDataAndSetVar(zipFilePath, destFilePath string) error
if err != nil {
panic(err)
}
allResourcesMockData, err = ioutil.ReadAll(file)
allResourcesMockData, err = io.ReadAll(file)
if err != nil {
panic(err)
}