diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-12-23 12:17:37 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-01-19 11:26:54 +0100 |
| commit | 4bd62a18b32a876e5ef2b024e454ccf793849050 (patch) | |
| tree | 456fed644cb4dd9e2c99207c34f68755a54dc4cb /dashboard/app/bisect_test.go | |
| parent | 62267f1427dd04f238043c6c9bd560c8c9d672fe (diff) | |
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.
Diffstat (limited to 'dashboard/app/bisect_test.go')
| -rw-r--r-- | dashboard/app/bisect_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
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"), |
