Skip to content

Commit

Permalink
use os.WriteFile instead of ioutil.WriteFile
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Mar 6, 2024
1 parent 7c4c78e commit 9781a37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
package fsnotify

import (
"io/ioutil"
"os"
"os/exec"
"path"
Expand Down Expand Up @@ -1133,7 +1132,7 @@ func TestCyclicSymlink(t *testing.T) {
// no way for us to get events on symlinks themselves, because opening them
// opens an fd to the file to which they point.

if err := ioutil.WriteFile(link, []byte("foo"), 0700); err != nil {
if err := os.WriteFile(link, []byte("foo"), 0700); err != nil {
t.Fatalf("could not make symlink: %v", err)
}

Expand Down

0 comments on commit 9781a37

Please sign in to comment.