From 579769ad283f34a5d2be8b1e65ef47bd3e56a527 Mon Sep 17 00:00:00 2001 From: Hrushikesh Bhosale Date: Wed, 27 May 2026 11:56:53 +0530 Subject: [PATCH] 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. --- examples/protocols/https_request/pytest_https_request.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/protocols/https_request/pytest_https_request.py b/examples/protocols/https_request/pytest_https_request.py index c4dfc541323..3cd8e0c7560 100644 --- a/examples/protocols/https_request/pytest_https_request.py +++ b/examples/protocols/https_request/pytest_https_request.py @@ -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:')