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:
-rw-r--r--internal/testhelper/testcfg/gitaly_builder.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/testhelper/testcfg/gitaly_builder.go b/internal/testhelper/testcfg/gitaly_builder.go
index 0caa780a1..59890a5a2 100644
--- a/internal/testhelper/testcfg/gitaly_builder.go
+++ b/internal/testhelper/testcfg/gitaly_builder.go
@@ -147,8 +147,8 @@ func (gc *GitalyCfgBuilder) BuildWithRepoAt(t testing.TB, relativePath string) (
}
// Build creates a minimal configuration setup with no options and returns it with cleanup function.
-func Build(t testing.TB) config.Cfg {
- cfgBuilder := NewGitalyCfgBuilder()
+func Build(t testing.TB, opts ...Option) config.Cfg {
+ cfgBuilder := NewGitalyCfgBuilder(opts...)
t.Cleanup(cfgBuilder.Cleanup)
return cfgBuilder.Build(t)
@@ -156,8 +156,8 @@ func Build(t testing.TB) config.Cfg {
// BuildWithRepo creates a minimal configuration setup with no options.
// It also clones test repository at the storage and returns it with the full path to the repository.
-func BuildWithRepo(t testing.TB) (config.Cfg, *gitalypb.Repository, string) {
- cfgBuilder := NewGitalyCfgBuilder()
+func BuildWithRepo(t testing.TB, opts ...Option) (config.Cfg, *gitalypb.Repository, string) {
+ cfgBuilder := NewGitalyCfgBuilder(opts...)
t.Cleanup(cfgBuilder.Cleanup)
cfg, repos := cfgBuilder.BuildWithRepoAt(t, t.Name())