mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 04:23:34 +08:00
Fixed timings for tests in order to reduce probability of test failure on a non-realtime system
This commit is contained in:
@@ -25,7 +25,7 @@ TEST(PanicBroadcaster, Basic)
|
||||
ASSERT_STREQ("I lost ", panicker.getReason().c_str());
|
||||
ASSERT_TRUE(panicker.isPanicking());
|
||||
|
||||
nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(2));
|
||||
nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(10));
|
||||
ASSERT_TRUE(sub.collector.msg.get());
|
||||
ASSERT_STREQ("I lost ", sub.collector.msg->reason_text.c_str());
|
||||
sub.collector.msg.reset();
|
||||
|
||||
Reference in New Issue
Block a user