summaryrefslogtreecommitdiff
path: root/internal/command/uploadpack/gitalycall_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/command/uploadpack/gitalycall_test.go')
-rw-r--r--internal/command/uploadpack/gitalycall_test.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/internal/command/uploadpack/gitalycall_test.go b/internal/command/uploadpack/gitalycall_test.go
index 213b6f9..e0a15ee 100644
--- a/internal/command/uploadpack/gitalycall_test.go
+++ b/internal/command/uploadpack/gitalycall_test.go
@@ -97,15 +97,18 @@ func TestUploadPack_withSidechannel(t *testing.T) {
Env: env,
}
+ ctx := correlation.ContextWithCorrelation(context.Background(), "a-correlation-id")
+ ctx = correlation.ContextWithClientName(ctx, "gitlab-shell-tests")
+
+ cfg := &config.Config{GitlabUrl: url}
+ cfg.GitalyClient.InitSidechannelRegistry(ctx)
+
cmd := &Command{
- Config: &config.Config{GitlabUrl: url},
+ Config: cfg,
Args: args,
ReadWriter: &readwriter.ReadWriter{ErrOut: output, Out: output, In: input},
}
- ctx := correlation.ContextWithCorrelation(context.Background(), "a-correlation-id")
- ctx = correlation.ContextWithClientName(ctx, "gitlab-shell-tests")
-
err := cmd.Execute(ctx)
require.NoError(t, err)