Files
ironic-python-agent/ironic_python_agent/agent.py
Riccardo Pittau e78d4af663 Fix slow test_find_routable_addr_no_reachable_urls
The test was taking 30 seconds due to _find_routable_addr()
entering a retry loop even when no IPs were collected from
unreachable API URLs. The code would loop 3 times with 10
second sleeps between attempts despite having nothing to check.

Add an early return when the ips set is empty to avoid
unnecessary retries.

Change-Id: I21892e0ea7351cabab740a86fc82ff7d087d4cb8
Signed-off-by: Riccardo Pittau <elfosardo@gmail.com>
2025-11-26 15:03:11 +00:00

26 KiB