mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Replace the deprecated ioutil methods in the test directory
This commit is contained in:
@@ -22,7 +22,6 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
"os"
|
||||
"path"
|
||||
@@ -598,7 +597,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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user