aboutsummaryrefslogtreecommitdiffhomepage
path: root/main_test.go
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2022-08-05 16:20:39 -0700
committerRon Evans <[email protected]>2022-08-07 10:32:23 +0200
commitf9ba99344af4143e700c55b381b0adef9d3bb3b2 (patch)
treec79ab1cc18b2b3b55345abdc294e382d5ffe0c42 /main_test.go
parent1784bcd7282aa247aa7fd4a2d3478c920cecdbcf (diff)
downloadtinygo-f9ba99344af4143e700c55b381b0adef9d3bb3b2.tar.gz
tinygo-f9ba99344af4143e700c55b381b0adef9d3bb3b2.zip
all: update _test.go files for ioutil changes
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/main_test.go b/main_test.go
index f620c77dc..310a92fe4 100644
--- a/main_test.go
+++ b/main_test.go
@@ -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)
}