diff --git a/pkg/nfs/nfs_test.go b/pkg/nfs/nfs_test.go index c4e23f89..ea642e38 100644 --- a/pkg/nfs/nfs_test.go +++ b/pkg/nfs/nfs_test.go @@ -17,7 +17,6 @@ limitations under the License. package nfs import ( - "io/ioutil" "os" "path/filepath" "testing" @@ -65,7 +64,7 @@ func TestNewFakeDriver(t *testing.T) { } func TestIsCorruptedDir(t *testing.T) { - existingMountPath, err := ioutil.TempDir(os.TempDir(), "csi-mount-test") + existingMountPath, err := os.MkdirTemp(os.TempDir(), "csi-mount-test") if err != nil { t.Fatalf("failed to create tmp dir: %v", err) }