From acc40c82173d8bae9569f7833cd0f00173ccbc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 25 Apr 2016 13:00:04 +0200 Subject: [PATCH] orb unittest: increase waiting time so that test does not fail on slow devices This test failed on the pixracer because the subscriber thread was too slow and thus orb messages got lost. This behavior is expected, but the test should not fail because of that, so we increase the sleeping time. --- src/modules/uORB/uORBTest_UnitTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/uORB/uORBTest_UnitTest.cpp b/src/modules/uORB/uORBTest_UnitTest.cpp index ecb5f06ba6..9c387b4477 100644 --- a/src/modules/uORB/uORBTest_UnitTest.cpp +++ b/src/modules/uORB/uORBTest_UnitTest.cpp @@ -354,7 +354,7 @@ int uORBTest::UnitTest::pub_test_multi2_main() usleep(100 * 1000); - int message_counter = 0, num_messages = 100 * num_instances; + int message_counter = 0, num_messages = 50 * num_instances; while (message_counter++ < num_messages) { usleep(2); //make sure the timestamps are different @@ -369,7 +369,7 @@ int uORBTest::UnitTest::pub_test_multi2_main() data_next_idx = (data_next_idx + 1) % num_instances; if (data_next_idx == 0) { - usleep(10 * 1000); + usleep(50 * 1000); } }