cleanup: fix golint error

This commit is contained in:
andyzhangx 2023-03-07 13:43:10 +00:00
parent 1e266176ba
commit 48ae4a1963

View File

@ -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)
}