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:
Diffstat (limited to 'internal/tempdir/tempdir_test.go')
-rw-r--r--internal/tempdir/tempdir_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tempdir/tempdir_test.go b/internal/tempdir/tempdir_test.go
index c53958fde..9ee5f4bd4 100644
--- a/internal/tempdir/tempdir_test.go
+++ b/internal/tempdir/tempdir_test.go
@@ -10,6 +10,7 @@ import (
"github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
+ "gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
)
@@ -21,14 +22,13 @@ func TestNewAsRepositorySuccess(t *testing.T) {
repo, _, cleanup := testhelper.NewTestRepo(t)
defer cleanup()
- locator := config.NewLocator(config.Config)
- tempRepo, tempDir, err := NewAsRepository(ctx, repo, locator)
+ tempRepo, tempDir, err := NewAsRepository(ctx, repo, config.NewLocator(config.Config))
require.NoError(t, err)
require.NotEqual(t, repo, tempRepo)
require.Equal(t, repo.StorageName, tempRepo.StorageName)
require.NotEqual(t, repo.RelativePath, tempRepo.RelativePath)
- calculatedPath, err := locator.GetPath(tempRepo)
+ calculatedPath, err := helper.GetPath(tempRepo)
require.NoError(t, err)
require.Equal(t, tempDir, calculatedPath)