Skip to content

Commit

Permalink
tests: k_mbox: Remove unneeded k_sleep()
Browse files Browse the repository at this point in the history
The test_multi_thread_send_get() test sends and receives mbox messages
with K_FOREVER as timeout, so k_sleep() is not needed here.

Signed-off-by: Andrei Emeltchenko <[email protected]>
  • Loading branch information
finikorg authored and cfriedt committed Nov 5, 2023
1 parent 6308528 commit 6247ddd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/kernel/mbox/mbox_usage/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ ZTEST_USER(mbox_usage_1cpu, test_multi_thread_send_get)
thread_high_prio, &multi_tmbox, NULL, NULL,
HIGH_PRIO, 0, K_NO_WAIT);

k_sleep(K_MSEC(20));
mmsg.size = sizeof(msg_data[0]);
mmsg.tx_data = msg_data[0];
mmsg.tx_target_thread = K_ANY;
Expand Down

0 comments on commit 6247ddd

Please sign in to comment.