diff options
Diffstat (limited to 'filesystem/path_test.go')
| -rw-r--r-- | filesystem/path_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filesystem/path_test.go b/filesystem/path_test.go index 1c59dd5..d325054 100644 --- a/filesystem/path_test.go +++ b/filesystem/path_test.go @@ -20,7 +20,6 @@ package filesystem import ( "fmt" - "io/ioutil" "os" "testing" @@ -61,7 +60,7 @@ func TestHaveReadAccessTo(t *testing.T) { if util.IsUserRoot() { t.Skip("This test cannot be run as root") } - file, err := ioutil.TempFile("", "fscrypt_test") + file, err := os.CreateTemp("", "fscrypt_test") if err != nil { t.Fatal(err) } |