Merge pull request #117468 from HirazawaUi/replace-test-deprecated-ioutil

Replace the deprecated ioutil methods in the test directory
This commit is contained in:
Kubernetes Prow Robot
2023-05-03 12:02:32 -07:00
committed by GitHub
3 changed files with 3 additions and 6 deletions

View File

@@ -22,7 +22,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"math"
"os"
"path"
@@ -602,7 +601,7 @@ func initTestOutput(tb testing.TB) io.Writer {
if err := fileOutput.Close(); err != nil {
tb.Fatalf("close log file: %v", err)
}
log, err := ioutil.ReadFile(logfileName)
log, err := os.ReadFile(logfileName)
if err != nil {
tb.Fatalf("read log file: %v", err)
}