aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse/ctlsock_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-07-07 19:54:48 +0200
committerJakob Unterwurzacher2025-07-07 19:59:35 +0200
commit8f5df19b353e02ffba842fd1b15ccf93da7ee3b4 (patch)
tree8f68b74e56a1d20af82e5093a059d180c925f9be /tests/reverse/ctlsock_test.go
parentcdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff)
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'tests/reverse/ctlsock_test.go')
-rw-r--r--tests/reverse/ctlsock_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/reverse/ctlsock_test.go b/tests/reverse/ctlsock_test.go
index f59fa45..8f9d843 100644
--- a/tests/reverse/ctlsock_test.go
+++ b/tests/reverse/ctlsock_test.go
@@ -1,7 +1,7 @@
package reverse_test
import (
- "io/ioutil"
+ "os"
"syscall"
"testing"
@@ -28,7 +28,7 @@ func TestCtlSockPathOps(t *testing.T) {
if plaintextnames {
t.Skip("this only tests encrypted names")
}
- mnt, err := ioutil.TempDir(test_helpers.TmpDir, "reverse_mnt_")
+ mnt, err := os.MkdirTemp(test_helpers.TmpDir, "reverse_mnt_")
if err != nil {
t.Fatal(err)
}
@@ -74,7 +74,7 @@ func TestCtlSockCrash(t *testing.T) {
if plaintextnames {
t.Skip("this only tests encrypted names")
}
- mnt, err := ioutil.TempDir(test_helpers.TmpDir, "reverse_mnt_")
+ mnt, err := os.MkdirTemp(test_helpers.TmpDir, "reverse_mnt_")
if err != nil {
t.Fatal(err)
}