diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-11-17 17:37:47 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-11-19 16:34:30 +0300 |
commit | d53eee7b2a6e841c698743ec8713d4e51d13e96b (patch) | |
tree | 6ccfb41c78a19d1ddbcc5db7c8a69c9e9e207eaf | |
parent | 6b03192f78893979640c5e93837862996775b35b (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.go | 3 |
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() |