aboutsummaryrefslogtreecommitdiff
path: root/misc/reboot/reboot_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/reboot/reboot_test.go')
-rw-r--r--misc/reboot/reboot_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/reboot/reboot_test.go b/misc/reboot/reboot_test.go
index 717c0fb709..6bafc608b5 100644
--- a/misc/reboot/reboot_test.go
+++ b/misc/reboot/reboot_test.go
@@ -7,7 +7,6 @@
package reboot_test
import (
- "io/ioutil"
"os"
"os/exec"
"path/filepath"
@@ -16,7 +15,7 @@ import (
)
func TestRepeatBootstrap(t *testing.T) {
- goroot, err := ioutil.TempDir("", "reboot-goroot")
+ goroot, err := os.MkdirTemp("", "reboot-goroot")
if err != nil {
t.Fatal(err)
}
@@ -27,7 +26,7 @@ func TestRepeatBootstrap(t *testing.T) {
t.Fatal(err)
}
- if err := ioutil.WriteFile(filepath.Join(goroot, "VERSION"), []byte(runtime.Version()), 0666); err != nil {
+ if err := os.WriteFile(filepath.Join(goroot, "VERSION"), []byte(runtime.Version()), 0666); err != nil {
t.Fatal(err)
}