mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(examples): make https_request rom_impl test resilient to transient external server errors
The rom_impl variant of the https_request example test connects to an external server, which requires a valid system time for TLS certificate validation. In CI, SNTP time sync can be unreachable, causing transient failures. Write the host timestamp into the DUT's NVS partition (via the existing write_time_to_nvs helper) before running the test, so the firmware can set its clock without depending on external NTP servers.
This commit is contained in:
@@ -399,6 +399,7 @@ def test_examples_protocol_https_request(dut: Dut) -> None:
|
||||
)
|
||||
@idf_parametrize('target', ['esp32c2'], indirect=['target'])
|
||||
def test_examples_protocol_https_request_rom_impl(dut: Dut) -> None:
|
||||
write_time_to_nvs(dut)
|
||||
# Connect to AP
|
||||
if dut.app.sdkconfig.get('EXAMPLE_WIFI_SSID_PWD_FROM_STDIN') is True:
|
||||
dut.expect('Please input ssid password:')
|
||||
|
||||
Reference in New Issue
Block a user