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>2022-01-13 20:39:33 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2022-01-14 16:53:57 +0300
commit817f160fac4a9de39d3953df4be2ce7a313e6505 (patch)
tree8a6bdba9e76f992a0248c5865742b1a0c3e8923d
parent636d9275e1127a978617f5e13befa188b044cd40 (diff)
smarthttp: Restore forgotten usage of options
The usage of the opts parameter in testServerPostUploadPackAllowAnySHA1InWant function was not supported in 7d681ebd6 (Implement PostUploadPackWithSidechannel using sidechannel protocol, 2021-09-17). This change fixes it.
-rw-r--r--internal/gitaly/service/smarthttp/upload_pack_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/smarthttp/upload_pack_test.go b/internal/gitaly/service/smarthttp/upload_pack_test.go
index 41a596e61..7ca11f796 100644
--- a/internal/gitaly/service/smarthttp/upload_pack_test.go
+++ b/internal/gitaly/service/smarthttp/upload_pack_test.go
@@ -449,7 +449,7 @@ func TestServer_PostUploadPackWithSidechannel_allowAnySHA1InWant(t *testing.T) {
}
func testServerPostUploadPackAllowAnySHA1InWant(t *testing.T, ctx context.Context, makeRequest requestMaker, opts ...testcfg.Option) {
- cfg, repo, repoPath := testcfg.BuildWithRepo(t)
+ cfg, repo, repoPath := testcfg.BuildWithRepo(t, opts...)
_, localRepoPath := gittest.InitRepo(t, cfg, cfg.Storages[0])
testcfg.BuildGitalyHooks(t, cfg)