Replace the deprecated ioutil methods in the test directory

This commit is contained in:
HirazawaUi
2023-04-18 21:51:10 +08:00
parent f33c4a1c79
commit a8b808ee6c
3 changed files with 3 additions and 6 deletions

View File

@@ -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)
}