all: update _test.go files for ioutil changes

This commit is contained in:
Damian Gryski
2022-08-05 16:20:39 -07:00
committed by Ron Evans
parent 1784bcd728
commit f9ba99344a
9 changed files with 18 additions and 22 deletions
+1 -2
View File
@@ -10,7 +10,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"reflect"
@@ -319,7 +318,7 @@ func runTestWithConfig(name string, t *testing.T, options compileopts.Options, c
if path[len(path)-1] == '/' {
txtpath = path + "out.txt"
}
expected, err := ioutil.ReadFile(txtpath)
expected, err := os.ReadFile(txtpath)
if err != nil {
t.Fatal("could not read expected output file:", err)
}