Answer product-owner round 2: 0 🔴, 0 🟡 (0 misread); read the epic again where a read fails during the wait, and reword two lines
CI / tests (pull_request) Successful in 3m56s
CI / tests (pull_request) Successful in 3m56s
This commit is contained in:
@@ -785,11 +785,13 @@ class AChunkWhosePullRequestWaitsOnAGate(DoEpicTest):
|
||||
|
||||
def sleep(seconds: float) -> None:
|
||||
slept.append(seconds)
|
||||
if len(slept) == 2:
|
||||
store.fails = "Jira answered 503" if len(slept) == 1 else None
|
||||
if len(slept) == 3:
|
||||
store.change("ABC-20", status="Release Ready")
|
||||
fake.effects = lambda made=fake.effects(): dataclasses.replace(made, sleep=sleep) # type: ignore[method-assign]
|
||||
code, out, err, _ = self.parked_run(fake)
|
||||
self.assertEqual((code, slept), (0, [60, 60]), err)
|
||||
self.assertEqual((code, slept), (0, [60, 60, 60]), err)
|
||||
self.assertIn("cannot read the epic, so cannot tell whether ABC-20 has moved; trying again every 60 seconds: Jira answered 503\n", out)
|
||||
self.assertEqual([(each.status, each.done) for each in store.issues if each.key == "ABC-20"], [("Release Ready", False)])
|
||||
self.assertEqual(out.count("ABC-20 is To Do: it waits for the team's automation to move it to Release Ready; move it in Jira if the automation doesn't\n"), 1, out)
|
||||
self.assertIn("the chunk finished; started ABC-22\n", out)
|
||||
|
||||
Reference in New Issue
Block a user