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 (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"testing"
@ -634,7 +633,7 @@ func (md *testMountDetector) GetMountMedium(path string, requestedMedium v1.Stor
}
func TestSetupHugepages(t *testing.T) {
tmpdir, err := ioutil.TempDir("", "TestSetupHugepages")
tmpdir, err := os.MkdirTemp("", "TestSetupHugepages")
if err != nil {
t.Fatal(err)
}