Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil (#122)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Aug 24, 2023
1 parent 6a9bda4 commit 8318aa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8318aa5

Please sign in to comment.