mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
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:
parent
dba0718f47
commit
7294438329
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user