tests: posix: mqueue: increase sleep ms to reduce failures

The test_mqueue_notify_thread testcase had a relatively high
failure rate because sleeping only 10ms was in some cases not
sufficiently long enough for the spawned thread to update
notification_executed.

Sleep 100 ms instead of 10 ms to reduce the failure rate.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
Christopher Friedt 2024-02-18 10:32:55 -05:00 committed by Chris Friedt
parent ee9c44fee6
commit f60ef4dea9
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ ZTEST(mqueue, test_mqueue_notify_thread)
zassert_ok(mq_send(mqd, send_data, MESSAGE_SIZE, 0), "Unable to send message");
usleep(USEC_PER_MSEC * 10U);
usleep(USEC_PER_MSEC * 100U);
zassert_true(notification_executed, "Notification not triggered.");