Skip to content

Commit

Permalink
kernel/os: Increase mutex test timeout
Browse files Browse the repository at this point in the history
On slower VMs (for example GHA's mac-os) tests were failing,
as previous timeout was not enough.
  • Loading branch information
m-gorecki committed Nov 7, 2024
1 parent 361b2f3 commit 7146d05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/os/selftest/src/testcases/os_mutex_test_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ TEST_CASE_TASK(os_mutex_test_basic)
os_mutex_init(&g_mutex1);
taskpool_alloc_assert(mutex_test_basic_handler,
MYNEWT_VAL(OS_MAIN_TASK_PRIO) + 2);
taskpool_wait_assert(200);
taskpool_wait_assert(OS_TICKS_PER_SEC * 4);
}
2 changes: 1 addition & 1 deletion kernel/os/selftest/src/testcases/os_mutex_test_case_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ TEST_CASE_TASK(os_mutex_test_case_1)
taskpool_alloc_assert(mutex_task3_handler,
MYNEWT_VAL(OS_MAIN_TASK_PRIO) + 4);

taskpool_wait_assert(200);
taskpool_wait_assert(OS_TICKS_PER_SEC * 4);
}
2 changes: 1 addition & 1 deletion kernel/os/selftest/src/testcases/os_mutex_test_case_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ TEST_CASE_TASK(os_mutex_test_case_2)
taskpool_alloc_assert(mutex_task4_handler,
MYNEWT_VAL(OS_MAIN_TASK_PRIO) + 5);

taskpool_wait_assert(200);
taskpool_wait_assert(OS_TICKS_PER_SEC * 4);
}

0 comments on commit 7146d05

Please sign in to comment.