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:
authorPavlo Strokov <pstrokov@gitlab.com>2021-03-31 11:00:06 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-03-31 11:00:06 +0300
commit671ff9ecb928baf5daf0ddc4c61b59b7a6e80896 (patch)
tree630bc5876cbb447813ecd31a56dc18aad3b6512e
parentf4e62c0ddf1c05433eabaa2b12b23aa9970ddc4f (diff)
Remove config.Config from hook package
A single entry reference to the config.Config removed from the hook package and replaced with local configuration setup call. Part of: https://gitlab.com/gitlab-org/gitaly/-/issues/2699
-rw-r--r--internal/gitaly/service/hook/update_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/gitaly/service/hook/update_test.go b/internal/gitaly/service/hook/update_test.go
index 0de0265f9..93553e15c 100644
--- a/internal/gitaly/service/hook/update_test.go
+++ b/internal/gitaly/service/hook/update_test.go
@@ -11,18 +11,18 @@ 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"
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
func TestUpdateInvalidArgument(t *testing.T) {
- serverSocketPath := runHooksServer(t, config.Config)
-
+ cfg := testcfg.Build(t)
+ serverSocketPath := runHooksServer(t, cfg)
client, conn := newHooksClient(t, serverSocketPath)
- defer conn.Close()
+ t.Cleanup(func() { conn.Close() })
ctx, cancel := testhelper.Context()
defer cancel()