From a00335ac627cfd7ae8467c98f711c49ad842a3e0 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Thu, 14 Sep 2023 09:41:20 +0200 Subject: [PATCH] fix(spi_flash): Fixed minor issue with esp flash test --- components/spi_flash/test_apps/esp_flash/main/test_spi_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/spi_flash/test_apps/esp_flash/main/test_spi_flash.c b/components/spi_flash/test_apps/esp_flash/main/test_spi_flash.c index 9890ba37d3..b875991965 100644 --- a/components/spi_flash/test_apps/esp_flash/main/test_spi_flash.c +++ b/components/spi_flash/test_apps/esp_flash/main/test_spi_flash.c @@ -114,6 +114,8 @@ TEST_CASE("flash write and erase work both on PRO CPU and on APP CPU", "[spi_fla const size_t task_count = sizeof(ctx)/sizeof(ctx[0]); for (int i = 0; i < task_count; ++i) { xSemaphoreTake(done, portMAX_DELAY); + } + for (int i = 0; i < task_count; ++i) { TEST_ASSERT_FALSE(ctx[i].fail); } vSemaphoreDelete(done);