cleanup ioutil for newer go version (#5238)

Signed-off-by: xin.li <xin.li@daocloud.io>

Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
my-git9
2022-12-29 19:34:45 +08:00
committed by GitHub
parent 38aa522016
commit 2fb0633354
33 changed files with 94 additions and 106 deletions

View File

@@ -19,7 +19,7 @@ package v1beta1
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
"testing"
"time"
@@ -211,7 +211,7 @@ func TestResourceTrackerCompression(t *testing.T) {
"../../../legacy/charts/vela-core-legacy/crds/standard.oam.dev_podspecworkloads.yaml",
}
for _, p := range paths {
b, err := ioutil.ReadFile(p)
b, err := os.ReadFile(p)
r.NoError(err)
data = append(data, string(b))
}