mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 13:53:01 +02:00
test: ntp_client: Adapt to new yangerd daemon
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user