mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Merge pull request #118392 from testwill/emptydir
chore: io/ioutil deprecated
This commit is contained in:
commit
1d25ce8beb
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user