From 48ae4a19636ea1779f937273cc9ac1dd8a0705a8 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Tue, 7 Mar 2023 13:43:10 +0000 Subject: [PATCH] cleanup: fix golint error --- pkg/nfs/nfs_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }