mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 13:10:36 +08:00
Tests fixes, the library should compile now
This commit is contained in:
@@ -58,7 +58,7 @@ TEST(Node, Basic)
|
||||
* Init the second node - network is empty
|
||||
*/
|
||||
ASSERT_LE(0, node2.start());
|
||||
ASSERT_FALSE(node_status_monitor.findNodeWithWorstStatus().isValid());
|
||||
ASSERT_FALSE(node_status_monitor.findNodeWithWorstHealth().isValid());
|
||||
|
||||
/*
|
||||
* Init the first node
|
||||
@@ -70,7 +70,7 @@ TEST(Node, Basic)
|
||||
|
||||
ASSERT_LE(0, node1.spin(uavcan::MonotonicDuration::fromMSec(2000)));
|
||||
|
||||
ASSERT_EQ(1, node_status_monitor.findNodeWithWorstStatus().get());
|
||||
ASSERT_EQ(1, node_status_monitor.findNodeWithWorstHealth().get());
|
||||
|
||||
/*
|
||||
* Some logging
|
||||
|
||||
Reference in New Issue
Block a user