mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 17:13:35 +08:00
Functional gtests: remove unnecessary subscription updates
A new subscription is updated on instanciation and no additional update needs to be called for processing the first sample.
This commit is contained in:
@@ -198,7 +198,6 @@ TEST_F(ObstacleAvoidanceTest, oa_desired)
|
||||
|
||||
// WHEN: we subscribe to the uORB message out of the interface
|
||||
uORB::SubscriptionData<vehicle_trajectory_waypoint_s> _sub_traj_wp_avoidance_desired{ORB_ID(vehicle_trajectory_waypoint_desired)};
|
||||
_sub_traj_wp_avoidance_desired.update();
|
||||
|
||||
// THEN: we expect the setpoints in POINT_0 and waypoints in POINT_1 and POINT_2
|
||||
EXPECT_FLOAT_EQ(pos_sp(0),
|
||||
|
||||
Reference in New Issue
Block a user