mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
test: ntp: client_stratum_selection: Adapt to yangerd behaviour
This commit is contained in:
@@ -127,7 +127,7 @@ with infamy.Test() as test:
|
||||
})
|
||||
|
||||
with test.step("Wait for client to see both servers"):
|
||||
until(lambda: ntp.number_of_sources(client) == 2, attempts=60)
|
||||
until(lambda: ntp.number_of_sources(client) == 2, attempts=120)
|
||||
|
||||
with test.step("Wait for srv2 stratum to stabilize"):
|
||||
# Ensure srv2 has synced with srv1 and is advertising
|
||||
@@ -148,7 +148,7 @@ with infamy.Test() as test:
|
||||
return True
|
||||
return False
|
||||
|
||||
until(check_stratums, attempts=60)
|
||||
until(check_stratums, attempts=120)
|
||||
print(f"srv1 and srv2 stratums verified as different")
|
||||
|
||||
with test.step("Verify client selects srv1 (lower stratum)"):
|
||||
|
||||
Reference in New Issue
Block a user