mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 23:57: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:
@@ -78,7 +78,7 @@ template <typename Client, typename Message>
|
||||
static void doCall(Client& client, const Message& request, InterlinkedTestNodesWithSysClock& nodes)
|
||||
{
|
||||
ASSERT_LE(0, client.call(1, request));
|
||||
ASSERT_LE(0, nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(1)));
|
||||
ASSERT_LE(0, nodes.spinBoth(uavcan::MonotonicDuration::fromMSec(10)));
|
||||
ASSERT_TRUE(client.collector.result->isSuccessful());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user