Merge pull request #118392 from testwill/emptydir

chore: io/ioutil deprecated
This commit is contained in:
Kubernetes Prow Robot 2023-06-26 20:04:31 -07:00 committed by GitHub
commit 1d25ce8beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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