From d2926b6663010ad849ab8e70e1a4aa1ed9337801 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 19 Oct 2026 10:50:12 -0400 Subject: [PATCH] test(maintenance): the swarm job's boot comes after the reboot the settle hands out (#6098) Co-Authored-By: Claude Opus 5.5 --- tests/plugins/host_agent/test_maintenance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/plugins/host_agent/test_maintenance.py b/tests/plugins/host_agent/test_maintenance.py index 4afd7b2..0369c8a 100644 --- a/tests/plugins/host_agent/test_maintenance.py +++ b/tests/plugins/host_agent/test_maintenance.py @@ -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 job.state == "rebooting" and m.executor(job) == "h1" assert m.handoff(job) == {"id": "job-1-reboot", "action": "reboot"} - t1 = T0 + timedelta(minutes=4) - assert m.apply_boot(job, T0 + timedelta(minutes=2), t1) + t1 = T0 + timedelta(minutes=9) # the reboot went out at T0+5 + assert m.apply_boot(job, T0 + timedelta(minutes=7), t1) assert job.state == "undraining" and job.back_at == t1 and m.executor(job) == "mgr" m.apply_result(job, _result(job, "done", ok=True), t1) assert job.state == "done"