Skip to content

Commit 8453632

Browse files
Adjusted asserts in third test case for consistent results.
Signed-off-by: Greg Anderson <[email protected]>
1 parent 725f054 commit 8453632

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nav2_collision_monitor/test/collision_monitor_node_test.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,11 +1690,9 @@ TEST_F(Tester, testVelocityPolygonStopGlobalHeight)
16901690

16911691
// 3. Pointcloud without height field, invalid source.
16921692
publishPointCloud(2.5, curr_time);
1693+
ASSERT_FALSE(waitData(std::hypot(2.5, 0.01), 100ms, curr_time));
16931694
publishCmdVel(3.0, 3.0, 3.0);
1694-
ASSERT_TRUE(waitCmdVel(500ms));
1695-
ASSERT_NEAR(cmd_vel_out_->linear.y, 0.0, EPSILON);
1696-
ASSERT_NEAR(cmd_vel_out_->linear.y, 0.0, EPSILON);
1697-
ASSERT_NEAR(cmd_vel_out_->angular.z, 0.0, EPSILON);
1695+
ASSERT_FALSE(waitCmdVel(500ms));
16981696
ASSERT_TRUE(waitActionState(500ms));
16991697
ASSERT_EQ(action_state_->action_type, STOP);
17001698
ASSERT_EQ(action_state_->polygon_name, "invalid source");

0 commit comments

Comments
 (0)