mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 16:09:06 +08:00
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:
parent
0031220c1a
commit
acc40c8217
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user