modify pytest timeout

This commit is contained in:
test 2023-11-21 15:13:58 +08:00
parent 4bae81f10f
commit 0632207059
2 changed files with 4 additions and 4 deletions

View File

@ -394,7 +394,7 @@ TEST_CASE("audio_front_end VC create/destroy API & memory leak", "[afe_vc]")
for (int i = 0; i < 2; i++) {
printf("index: %d\n", i);
vTaskDelay(3000 / portTICK_PERIOD_MS);
vTaskDelay(500 / portTICK_PERIOD_MS);
start_total_mem_size = heap_caps_get_free_size(MALLOC_CAP_8BIT);
start_internal_mem_size = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
start_spiram_mem_size = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM);
@ -424,7 +424,7 @@ TEST_CASE("audio_front_end VC create/destroy API & memory leak", "[afe_vc]")
}
esp_srmodel_deinit(models);
vTaskDelay(3000 / portTICK_PERIOD_MS);
vTaskDelay(1000 / portTICK_PERIOD_MS);
end_total_mem_size = heap_caps_get_free_size(MALLOC_CAP_8BIT);
end_internal_mem_size = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL);
end_spiram_mem_size = heap_caps_get_free_size(MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM);

View File

@ -59,8 +59,8 @@ def test_sr_afe(dut: Dut)-> None:
'nsnet1',
],
)
def test_sr_afe(dut: Dut)-> None:
def test_vc_afe(dut: Dut)-> None:
# dut.run_all_single_board_cases(group="afe")
dut.expect_exact('Press ENTER to see the list of tests.')
dut.write('[afe_vc]')
dut.expect_unity_test_output(timeout = 1000)
dut.expect_unity_test_output(timeout = 100000)