summaryrefslogtreecommitdiff
path: root/client/testserver/gitalyserver.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/testserver/gitalyserver.go')
-rw-r--r--client/testserver/gitalyserver.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/testserver/gitalyserver.go b/client/testserver/gitalyserver.go
index d2b3767..7159d16 100644
--- a/client/testserver/gitalyserver.go
+++ b/client/testserver/gitalyserver.go
@@ -1,7 +1,6 @@
package testserver
import (
- "io/ioutil"
"net"
"os"
"path"
@@ -61,7 +60,7 @@ func (s *TestGitalyServer) SSHUploadArchive(stream pb.SSHService_SSHUploadArchiv
func StartGitalyServer(t *testing.T) (string, *TestGitalyServer) {
t.Helper()
- tempDir, _ := ioutil.TempDir("", "gitlab-shell-test-api")
+ tempDir, _ := os.MkdirTemp("", "gitlab-shell-test-api")
gitalySocketPath := path.Join(tempDir, "gitaly.sock")
t.Cleanup(func() { os.RemoveAll(tempDir) })