From 4bd62a18b32a876e5ef2b024e454ccf793849050 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 23 Dec 2022 12:17:37 +0100 Subject: dashboard: support multiple simultaneous jobs Modify job_poll never to return already started jobs. Introduce a special job_reset API call to clear the "started" flag for the specified list of managers. --- dashboard/app/bisect_test.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'dashboard/app/bisect_test.go') diff --git a/dashboard/app/bisect_test.go b/dashboard/app/bisect_test.go index 2f4e821cd..2c345ffec 100644 --- a/dashboard/app/bisect_test.go +++ b/dashboard/app/bisect_test.go @@ -80,11 +80,6 @@ func TestBisectCause(t *testing.T) { "syncfs(3)")) c.expectEQ(pollResp.ReproC, []byte("int main() { return 3; }")) - // Since we did not reply, we should get the same response. - c.advanceTime(5 * 24 * time.Hour) - pollResp2 := c.client2.pollJobs(build.Manager) - c.expectEQ(pollResp, pollResp2) - // Bisection failed with an error. done := &dashapi.JobDoneReq{ ID: pollResp.ID, @@ -95,6 +90,7 @@ func TestBisectCause(t *testing.T) { c.expectNoEmail() // BisectCause #2 + pollResp2 := pollResp pollResp = c.client2.pollJobs(build.Manager) c.expectNE(pollResp.ID, pollResp2.ID) c.expectEQ(pollResp.ReproOpts, []byte("repro opts 2")) @@ -316,8 +312,6 @@ https://goo.gl/tpsmEJ#testing-patches`, c.expectEQ(pollResp.Type, dashapi.JobBisectFix) c.expectEQ(pollResp.ReproOpts, []byte("repro opts 2")) c.advanceTime(5 * 24 * time.Hour) - pollResp2 = c.client2.pollJobs(build.Manager) - c.expectEQ(pollResp, pollResp2) done = &dashapi.JobDoneReq{ ID: pollResp.ID, Log: []byte("bisect log 2"), -- cgit mrf-deployment