aboutsummaryrefslogtreecommitdiff
path: root/ssh/test/test_unix_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'ssh/test/test_unix_test.go')
-rw-r--r--ssh/test/test_unix_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/ssh/test/test_unix_test.go b/ssh/test/test_unix_test.go
index 804163c..95e2e30 100644
--- a/ssh/test/test_unix_test.go
+++ b/ssh/test/test_unix_test.go
@@ -14,7 +14,6 @@ import (
"crypto/rand"
"encoding/base64"
"fmt"
- "io/ioutil"
"log"
"net"
"os"
@@ -151,7 +150,7 @@ func clientConfig() *ssh.ClientConfig {
// is used for connecting the Go SSH client with sshd without opening
// ports.
func unixConnection() (*net.UnixConn, *net.UnixConn, error) {
- dir, err := ioutil.TempDir("", "unixConnection")
+ dir, err := os.MkdirTemp("", "unixConnection")
if err != nil {
return nil, nil, err
}
@@ -316,7 +315,7 @@ func newServerForConfig(t *testing.T, config string, configVars map[string]strin
if uname == "root" {
t.Skip("skipping test because current user is root")
}
- dir, err := ioutil.TempDir("", "sshtest")
+ dir, err := os.MkdirTemp("", "sshtest")
if err != nil {
t.Fatal(err)
}
@@ -365,7 +364,7 @@ func newServerForConfig(t *testing.T, config string, configVars map[string]strin
}
func newTempSocket(t *testing.T) (string, func()) {
- dir, err := ioutil.TempDir("", "socket")
+ dir, err := os.MkdirTemp("", "socket")
if err != nil {
t.Fatal(err)
}