chore: io/ioutil deprecated

This commit is contained in:
guoguangwu 2023-06-02 13:10:38 +08:00
parent decf1e1a9b
commit 70ff750c75

View File

@ -21,7 +21,6 @@ package emptydir
import ( import (
"fmt" "fmt"
"io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"testing" "testing"
@ -634,7 +633,7 @@ func (md *testMountDetector) GetMountMedium(path string, requestedMedium v1.Stor
} }
func TestSetupHugepages(t *testing.T) { func TestSetupHugepages(t *testing.T) {
tmpdir, err := ioutil.TempDir("", "TestSetupHugepages") tmpdir, err := os.MkdirTemp("", "TestSetupHugepages")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }