test(maintenance): the swarm job's boot comes after the reboot the settle hands out (#6098)
CI / lint (push) Successful in 8s
CI / unit (push) Successful in 1m33s
CI / integration (push) Successful in 1m42s
CI / publish (push) Successful in 20s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 10:50:12 -04:00
co-authored by Claude Opus 5.5
parent 1ba4784fa6
commit d2926b6663
+2 -2
View File
@@ -53,8 +53,8 @@ def test_a_swarm_node_is_drained_rebooted_and_made_active_again():
assert m.settle(job, T0 + timedelta(minutes=5)) assert m.settle(job, T0 + timedelta(minutes=5))
assert job.state == "rebooting" and m.executor(job) == "h1" assert job.state == "rebooting" and m.executor(job) == "h1"
assert m.handoff(job) == {"id": "job-1-reboot", "action": "reboot"} assert m.handoff(job) == {"id": "job-1-reboot", "action": "reboot"}
t1 = T0 + timedelta(minutes=4) t1 = T0 + timedelta(minutes=9) # the reboot went out at T0+5
assert m.apply_boot(job, T0 + timedelta(minutes=2), t1) assert m.apply_boot(job, T0 + timedelta(minutes=7), t1)
assert job.state == "undraining" and job.back_at == t1 and m.executor(job) == "mgr" assert job.state == "undraining" and job.back_at == t1 and m.executor(job) == "mgr"
m.apply_result(job, _result(job, "done", ok=True), t1) m.apply_result(job, _result(job, "done", ok=True), t1)
assert job.state == "done" assert job.state == "done"