From 8318aa52a5fd64b188587b18f738ac099d4bcdb6 Mon Sep 17 00:00:00 2001 From: guangwu Date: Fri, 25 Aug 2023 05:18:43 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil (#122) 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