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:
Hrushikesh Bhosale
2026-05-27 11:56:53 +05:30
parent 8f3d8b41c3
commit 579769ad28

View File

@@ -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:')