fix(storage/fatfsgen): increase test timeout

This commit is contained in:
Tomáš Rohlínek
2025-03-12 08:57:00 +01:00
parent f884c4a974
commit f416523e16
2 changed files with 8 additions and 10 deletions

View File

@@ -68,6 +68,7 @@ void app_main(void)
ESP_LOGI(TAG, "Opening file");
FILE *f;
for(int i = 0; i < CONFIG_EXAMPLE_FATFS_WRITE_COUNT; i++){
ESP_LOGI(TAG, "Write number: %d", i);
f = fopen(device_filename, "wb");
if (f == NULL) {
ESP_LOGE(TAG, "Failed to open file for writing");

View File

@@ -135,7 +135,7 @@ def validate_directory_structure(base_path: str, expected_structure: FileStructu
@idf_parametrize('target', ['esp32'], indirect=['target'])
def test_examples_fatfsgen(config: str, dut: Dut) -> None:
# Default timeout - a bit overkill, but better than failing tests
timeout = 60
timeout = 600
def expect(msg: str, timeout: int = timeout) -> None:
dut.expect(msg, timeout=timeout)
@@ -177,15 +177,12 @@ def test_examples_fatfsgen(config: str, dut: Dut) -> None:
expect('example: Mounting FAT filesystem')
if not config_read_only:
expect_all(
[
'example: Opening file',
'example: File written',
'example: Reading file',
'example: Read from file: ' + "'This is written by the device'",
],
30,
)
expect_all([
'example: Opening file',
'example: File written',
'example: Reading file',
'example: Read from file: ' + "'This is written by the device'",
])
expect('example: Reading file')