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"