diff options
author | Igor <idrozdov@gitlab.com> | 2019-05-31 12:08:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-31 12:08:54 +0000 |
commit | 033c81d546d31d07e5eadb50611543a7d2471254 (patch) | |
tree | 688dc50182c8429941d4d23edad3aedc08471233 /go/internal/gitlabnet/client_test.go | |
parent | 12ca54c2d998803a0564a5a2942121364a30678f (diff) | |
download | gitlab-shell-033c81d546d31d07e5eadb50611543a7d2471254.tar.gz |
Go implementation for git-receive-pack
Diffstat (limited to 'go/internal/gitlabnet/client_test.go')
-rw-r--r-- | go/internal/gitlabnet/client_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/go/internal/gitlabnet/client_test.go b/go/internal/gitlabnet/client_test.go index d817239..cf42195 100644 --- a/go/internal/gitlabnet/client_test.go +++ b/go/internal/gitlabnet/client_test.go @@ -11,6 +11,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "gitlab.com/gitlab-org/gitlab-shell/go/internal/config" "gitlab.com/gitlab-org/gitlab-shell/go/internal/gitlabnet/testserver" "gitlab.com/gitlab-org/gitlab-shell/go/internal/testhelper" @@ -71,7 +72,7 @@ func TestClients(t *testing.T) { testCases := []struct { desc string config *config.Config - server func([]testserver.TestRequestHandler) (func(), string, error) + server func(*testing.T, []testserver.TestRequestHandler) (string, func()) }{ { desc: "Socket client", @@ -94,9 +95,8 @@ func TestClients(t *testing.T) { for _, tc := range testCases { t.Run(tc.desc, func(t *testing.T) { - cleanup, url, err := tc.server(requests) + url, cleanup := tc.server(t, requests) defer cleanup() - require.NoError(t, err) tc.config.GitlabUrl = url tc.config.Secret = "sssh, it's a secret" |