Merge pull request #1537 from saba8814/fix/flaky-dhcp-option-121-test

fix: flaky dhcp option 121 test
This commit is contained in:
Ejub Šabić
2026-06-16 11:50:03 +02:00
committed by GitHub
+2 -2
View File
@@ -81,7 +81,7 @@ with infamy.Test() as test:
with infamy.dhcp.Server(netns, prefix=PREFIX, router=ROUTER):
with test.step("Verify client has route 10.0.0.0/24 via 192.168.0.254 (option 121)"):
print("Verify client use classless routes, option 121")
until(lambda: route.ipv4_route_exist(client, PREFIX, ROUTER))
until(lambda: route.ipv4_route_exist(client, PREFIX, ROUTER), attempts=60)
with test.step("Verify client has default route via 192.168.0.254 (not use option 3)"):
print("Verify client did *not* use option 3")
@@ -90,6 +90,6 @@ with infamy.Test() as test:
with test.step("Verify client still has canary route to 20.0.0.0/24 via 192.168.0.2"):
until(lambda: route.ipv4_route_exist(client, CANARY,
CANHOP, pref=250))
CANHOP, pref=250), attempts=60)
test.succeed()