diff options
Diffstat (limited to 'pkg/compiler/compiler_test.go')
| -rw-r--r-- | pkg/compiler/compiler_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/compiler/compiler_test.go b/pkg/compiler/compiler_test.go index 79735d10a..be40e817b 100644 --- a/pkg/compiler/compiler_test.go +++ b/pkg/compiler/compiler_test.go @@ -7,7 +7,7 @@ import ( "bytes" "flag" "fmt" - "io/ioutil" + "os" "path/filepath" "reflect" "sort" @@ -112,7 +112,7 @@ func TestData(t *testing.T) { } if formatted := ast.Format(astDesc); !bytes.Equal(em.Data, formatted) { if *flagUpdate { - ioutil.WriteFile(fileName, formatted, 0644) + os.WriteFile(fileName, formatted, 0644) } t.Fatalf("description is not formatted") } |
