diff options
Diffstat (limited to 'plugin/root/root_test.go')
-rw-r--r-- | plugin/root/root_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/root/root_test.go b/plugin/root/root_test.go index dde1ae6b7..27bdf84ad 100644 --- a/plugin/root/root_test.go +++ b/plugin/root/root_test.go @@ -2,7 +2,6 @@ package root import ( "fmt" - "io/ioutil" "os" "path/filepath" "strings" @@ -24,7 +23,7 @@ func TestRoot(t *testing.T) { nonExistingDir := filepath.Join(existingDirPath, "highly_unlikely_to_exist_dir") - existingFile, err := ioutil.TempFile("", "root_test") + existingFile, err := os.CreateTemp("", "root_test") if err != nil { t.Fatalf("BeforeTest: Failed to create temp file for testing! Error was: %v", err) } |