mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +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 (
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user