Skip to content

Commit

Permalink
test with spin_all
Browse files Browse the repository at this point in the history
  • Loading branch information
tonynajjar committed May 28, 2024
1 parent 80d5238 commit fdd0660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_costmap_2d/test/integration/dyn_params_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ TEST(DynParamTestNode, testDynParamsSet)
rclcpp::Parameter("robot_base_frame", "wrong_test_frame"),
});

rclcpp::spin_some(node->get_node_base_interface());
rclcpp::spin_some(costmap->get_node_base_interface());
rclcpp::spin_all(node->get_node_base_interface(), std::chrono::milliseconds(50));
rclcpp::spin_all(costmap->get_node_base_interface(), std::chrono::milliseconds(50));

EXPECT_EQ(costmap->get_parameter("robot_radius").as_double(), 1.234);
EXPECT_EQ(costmap->get_parameter("footprint_padding").as_double(), 2.345);
Expand Down

0 comments on commit fdd0660

Please sign in to comment.