From 7f4c4b63eea167172dcbe7a551745275f363493d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Fri, 12 Jun 2026 16:20:19 +0200 Subject: [PATCH] dhcp: server_subnets: Adapt to yanger behaviour changes --- test/case/dhcp/server_subnets/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/case/dhcp/server_subnets/test.py b/test/case/dhcp/server_subnets/test.py index 883425be..37260170 100755 --- a/test/case/dhcp/server_subnets/test.py +++ b/test/case/dhcp/server_subnets/test.py @@ -333,7 +333,10 @@ with infamy.Test() as test: until(lambda: route.ipv4_route_exist(client1, "0.0.0.0/0", nexthop=SERVER1)) with test.step("Verify DHCP client1 has correct DNS server(s)"): - until(lambda: has_system_servers(client1, ["192.168.1.1"])) + # DNS arrives via DHCP and propagates event-driven (DHCP client -> + # resolvconf -> fswatcher -> yangerd), which can take well over the + # default ~10s window; match the client2/client3 checks below. + until(lambda: has_system_servers(client1, ["192.168.1.1"]), attempts=120) with test.step("Verify DHCP client2 get correct static lease"): until(lambda: iface.address_exist(client2, client2["server"], ADDR2))