Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workhorse/main_test.go')
-rw-r--r--workhorse/main_test.go18
1 files changed, 1 insertions, 17 deletions
diff --git a/workhorse/main_test.go b/workhorse/main_test.go
index 88db9e0103b..59090cc1232 100644
--- a/workhorse/main_test.go
+++ b/workhorse/main_test.go
@@ -58,6 +58,7 @@ func TestMain(m *testing.M) {
}
defer gitaly.CloseConnections()
+ gitaly.InitializeSidechannelRegistry(logrus.StandardLogger())
os.Exit(m.Run())
}
@@ -800,9 +801,6 @@ func startWorkhorseServer(authBackend string) *httptest.Server {
func startWorkhorseServerWithConfig(cfg *config.Config) *httptest.Server {
testhelper.ConfigureSecret()
u := upstream.NewUpstream(*cfg, logrus.StandardLogger())
-
- gitaly.InitializeSidechannelRegistry(logrus.StandardLogger())
-
return httptest.NewServer(u)
}
@@ -823,20 +821,6 @@ func gitOkBody(t *testing.T) *api.Response {
}
}
-func gitOkBodyWithSidechannel(t *testing.T) *api.Response {
- return &api.Response{
- GL_ID: "user-123",
- GL_USERNAME: "username",
- Repository: gitalypb.Repository{
- StorageName: "default",
- RelativePath: "foo/bar.git",
- },
- GitalyServer: gitaly.Server{
- Sidechannel: true,
- },
- }
-}
-
func httpGet(t *testing.T, url string, headers map[string]string) (*http.Response, string) {
req, err := http.NewRequest("GET", url, nil)
require.NoError(t, err)