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 'cmd/gitaly-ssh/main_test.go')
-rw-r--r--cmd/gitaly-ssh/main_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/gitaly-ssh/main_test.go b/cmd/gitaly-ssh/main_test.go
index d66a57a0f..7256a7e02 100644
--- a/cmd/gitaly-ssh/main_test.go
+++ b/cmd/gitaly-ssh/main_test.go
@@ -89,7 +89,14 @@ func TestRun(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- gotCode, err := run(tt.packer, tt.workingDir, tt.gitalyAddress, "{}")
+ cmd := gitalySSHCommand{
+ packer: tt.packer,
+ workingDir: tt.workingDir,
+ address: tt.gitalyAddress,
+ payload: "{}",
+ }
+
+ gotCode, err := cmd.run()
if tt.wantErr {
assert.Error(t, err)
} else {