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.
This commit is contained in:
Beat Küng 2016-04-25 13:00:04 +02:00 committed by Lorenz Meier
parent 0031220c1a
commit acc40c8217

View File

@ -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);
}
}