sntp/test: Fixed flaky example test

From SNTP update in a71fa821, the example test uses notification event
(before it simply polled the state in 2 seconds interval). With this
change it is possible that the time gets synchronized before retrying,
i.e. printing "Waiting for system time to be set... (2/15)". (it was
theoretically possible also before this change, but practically never
happened)
This commit is contained in:
David Cermak 2023-02-01 08:01:54 +01:00
parent dba0718f47
commit 7294438329

View File

@ -23,7 +23,6 @@ def test_get_time_from_sntp_server(dut: Dut) -> None:
dut.expect('IPv4 address:')
dut.expect('Initializing and starting SNTP')
dut.expect(r'Waiting for system time to be set... \(\d+/\d+\)')
dut.expect('Notification of a time synchronization event')
TIME_FORMAT = '%a %b %d %H:%M:%S %Y'