From 36fa20ebbb71eb310d31055756094663439e00ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Fri, 5 Jun 2026 09:56:54 +0200 Subject: [PATCH] test: ntp_client: Adapt to new yangerd daemon --- test/case/system/ntp_client/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/case/system/ntp_client/test.py b/test/case/system/ntp_client/test.py index 8bb82080..ec3b383b 100755 --- a/test/case/system/ntp_client/test.py +++ b/test/case/system/ntp_client/test.py @@ -101,9 +101,9 @@ with infamy.Test() as test: with ntp_server.Server(ns1) as ntp1, \ ntp_server.Server(ns2) as ntp2, \ ntp_server.Server(ns3) as ntp3: + with test.step("Verify three sources exist in NTP client on 'target'"): + util.until(lambda: ntp.number_of_sources(target) == 3, attempts=200) with test.step("Verify one source is in 'selected' state on 'target'"): util.until(lambda: ntp.any_source_selected(target), attempts=200) - with test.step("Verify three sources exist in NTP client on 'target'"): - assert ntp.number_of_sources(target) == 3 test.succeed()