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:
parent
ee9c44fee6
commit
f60ef4dea9
|
@ -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.");
|
||||
|
||||
|
|
Loading…
Reference in New Issue