From 71d364c5d06534732a6f42eb330522051732f336 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 29 Jun 2023 13:33:54 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil Signed-off-by: guoguangwu --- codec_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codec_test.go b/codec_test.go index 93ec6b5..684f521 100644 --- a/codec_test.go +++ b/codec_test.go @@ -25,7 +25,6 @@ import ( "bytes" "flag" "fmt" - "io/ioutil" "os" "path/filepath" "strings" @@ -414,7 +413,7 @@ func TestSeedFuzzCorpus(t *testing.T) { corpusDir := filepath.Join(".", "testdata", "corpus") writeSeedFile := func(name, data string) error { path := filepath.Join(corpusDir, name) - return ioutil.WriteFile(path, []byte(data), os.ModePerm) + return os.WriteFile(path, []byte(data), os.ModePerm) } for _, fst := range fromStringTests { name := "seed_valid_" + fst.variant