fix(app_update): Fix CI test_switch_ota by increasing deepsleep

It increases the deepsleep time from 2000 to 20000.
2000 is too small for esp32-s3 chip.
This commit is contained in:
KonstantinKondrashov
2023-07-14 15:05:44 +08:00
parent c7d8b06fd2
commit 28aec9594a
3 changed files with 23 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -185,8 +185,8 @@ static void erase_ota_data(void)
static void reboot_as_deep_sleep(void)
{
ESP_LOGI(TAG, "reboot as deep sleep");
esp_sleep_enable_timer_wakeup(2000);
esp_deep_sleep_start();
esp_deep_sleep(20000);
TEST_FAIL_MESSAGE("Should never be reachable except when sleep is rejected, abort");
}
/* @brief Copies a current app to next partition (OTA0-15), after that ESP is rebooting and run this (the next) OTAx.