Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-11-17 17:37:47 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-11-19 16:34:30 +0300
commitd53eee7b2a6e841c698743ec8713d4e51d13e96b (patch)
tree6ccfb41c78a19d1ddbcc5db7c8a69c9e9e207eaf
parent6b03192f78893979640c5e93837862996775b35b (diff)
gitaly-ssh: Convert to use `testhelper.NewTestRepo()`
We're about to move the test storage into the global temporary test directory, which will make use of `testhelper.TestRepository()` not work anymore. This commit thus refactors `cmd/gitaly-ssh` to use `testhelper.NewTestRepo()` instead.
-rw-r--r--cmd/gitaly-ssh/auth_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gitaly-ssh/auth_test.go b/cmd/gitaly-ssh/auth_test.go
index ef13bd2fb..c22122097 100644
--- a/cmd/gitaly-ssh/auth_test.go
+++ b/cmd/gitaly-ssh/auth_test.go
@@ -34,7 +34,8 @@ func TestConnectivity(t *testing.T) {
certPoolPath := filepath.Join(cwd, "testdata", "certs")
- testRepo := testhelper.TestRepository()
+ testRepo, _, cleanup := testhelper.NewTestRepo(t)
+ defer cleanup()
socketPath := testhelper.GetTemporaryGitalySocketFileName()