diff --git a/tests/core/test_swarm_prune.py b/tests/core/test_swarm_prune.py index 61804e6..9ba367e 100644 --- a/tests/core/test_swarm_prune.py +++ b/tests/core/test_swarm_prune.py @@ -35,8 +35,8 @@ def test_the_playbook_is_listed_and_asks_before_it_runs(): script = next(t for t in play["tasks"] if "ansible.builtin.script" in t) assert script["check_mode"] is False and "--dry-run" in script["ansible.builtin.script"]["cmd"] # No docker prune touches images: an image swarm pulled by digest has no - # tag, and Docker calls that dangling (on 2026-10-25 a `system prune` - # took 29 a node was keeping for the other's services). + # tag, and Docker calls that dangling, so a `system prune` removes the + # images a node keeps for the other node's services. commands = yaml.safe_dump([t for t in play["tasks"] if "ansible.builtin.command" in t]) assert "'system'" not in commands and "'image'" not in commands assert "'container', 'prune'" in commands and "'builder', 'prune'" in commands