Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
roncapat authored Nov 14, 2024
1 parent 446d16a commit edd5b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rclcpp/test/rclcpp/test_node_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ TEST(TestNodeOptions, copy) {
// We separate attribute modification from variable initialisation (copy assignment operator)
// to be sure the "non_default_options"'s properties are correctly set before testing the
// assignment operator.
rclcpp::init(0, nullptr);
rclcpp::Node node("time_sink__test_node");
auto non_default_options = rclcpp::NodeOptions();
non_default_options
Expand Down Expand Up @@ -254,6 +255,7 @@ TEST(TestNodeOptions, copy) {
EXPECT_EQ(non_default_options.automatically_declare_parameters_from_overrides(),
copied_options.automatically_declare_parameters_from_overrides());
EXPECT_EQ(non_default_options.time_source(), copied_options.time_source());
rclcpp::shutdown();
}
}

Expand Down

0 comments on commit edd5b50

Please sign in to comment.