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/git/localrepo/config_test.go')
-rw-r--r--internal/git/localrepo/config_test.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/git/localrepo/config_test.go b/internal/git/localrepo/config_test.go
index f945c4e6a..f44bf682e 100644
--- a/internal/git/localrepo/config_test.go
+++ b/internal/git/localrepo/config_test.go
@@ -10,7 +10,6 @@ import (
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly/internal/git"
"gitlab.com/gitlab-org/gitaly/internal/git/gittest"
- "gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/internal/helper/text"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper/testcfg"
@@ -21,21 +20,13 @@ func setupRepoConfig(t *testing.T) (Config, string) {
cfg := testcfg.Build(t)
- repoProto, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg.Storages[0])
+ repoProto, repoPath, cleanup := gittest.InitBareRepoAt(t, cfg, cfg.Storages[0])
t.Cleanup(cleanup)
repo := New(git.NewExecCommandFactory(cfg), repoProto, cfg)
return repo.Config(), repoPath
}
-func TestRepo_Config(t *testing.T) {
- bareRepo, _, cleanup := gittest.InitBareRepo(t)
- defer cleanup()
-
- repo := New(nil, bareRepo, config.Cfg{})
- require.Equal(t, Config{repo: repo}, repo.Config())
-}
-
func TestBuildConfigAddOptsFlags(t *testing.T) {
for _, tc := range []struct {
desc string