From d40f1cf14b0dbc9a2ae76519ef365e44200335e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Tue, 28 Apr 2026 13:56:07 +0200 Subject: [PATCH] test: dhcp: server_subnets: Add longer timeout for polling This since NTP status is polled in yangerd. --- test/case/dhcp/server_subnets/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/case/dhcp/server_subnets/test.py b/test/case/dhcp/server_subnets/test.py index ce064763..883425be 100755 --- a/test/case/dhcp/server_subnets/test.py +++ b/test/case/dhcp/server_subnets/test.py @@ -342,7 +342,7 @@ with infamy.Test() as test: until(lambda: route.ipv4_route_exist(client2, "0.0.0.0/0", nexthop=GW2)) with test.step("Verify DHCP client2 has correct DNS and NTP server(s)"): - until(lambda: has_system_servers(client2, ["192.168.2.1"], "192.168.2.1")) + until(lambda: has_system_servers(client2, ["192.168.2.1"], "192.168.2.1"), attempts=120) with test.step("Verify DHCP client3 get correct lease"): until(lambda: iface.address_exist(client3, client3["server"], POOL2)) @@ -351,6 +351,6 @@ with infamy.Test() as test: until(lambda: route.ipv4_route_exist(client3, "0.0.0.0/0", nexthop=SERVER2)) with test.step("Verify DHCP client3 has correct DNS and NTP server(s)"): - until(lambda: has_system_servers(client3, ["1.2.3.4", "192.168.2.1"], "192.168.2.1")) + until(lambda: has_system_servers(client3, ["1.2.3.4", "192.168.2.1"], "192.168.2.1"), attempts=120) test.succeed()