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/jobs_test.go')
-rw-r--r--workhorse/jobs_test.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/workhorse/jobs_test.go b/workhorse/jobs_test.go
index fe51fc58d6a..d70c8d77d88 100644
--- a/workhorse/jobs_test.go
+++ b/workhorse/jobs_test.go
@@ -18,11 +18,6 @@ func startWorkhorseServerWithLongPolling(authBackend string, pollingDuration tim
type requestJobFunction func(url string, body io.Reader) (*http.Response, error)
-func requestJobV1(url string, body io.Reader) (*http.Response, error) {
- resource := `/ci/api/v1/builds/register.json`
- return http.Post(url+resource, `application/json`, body)
-}
-
func requestJobV4(url string, body io.Reader) (*http.Response, error) {
resource := `/api/v4/jobs/request`
return http.Post(url+resource, `application/json`, body)
@@ -50,11 +45,9 @@ func testJobsLongPollingEndpoint(t *testing.T, requestJob requestJobFunction) {
}
func TestJobsLongPollingEndpointDisabled(t *testing.T) {
- testJobsLongPollingEndpointDisabled(t, requestJobV1)
testJobsLongPollingEndpointDisabled(t, requestJobV4)
}
func TestJobsLongPollingEndpoint(t *testing.T) {
- testJobsLongPollingEndpoint(t, requestJobV1)
testJobsLongPollingEndpoint(t, requestJobV4)
}