Skip to content

Commit edd5b50

Browse files
authored
Fix test
1 parent 446d16a commit edd5b50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rclcpp/test/rclcpp/test_node_options.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ TEST(TestNodeOptions, copy) {
211211
// We separate attribute modification from variable initialisation (copy assignment operator)
212212
// to be sure the "non_default_options"'s properties are correctly set before testing the
213213
// assignment operator.
214+
rclcpp::init(0, nullptr);
214215
rclcpp::Node node("time_sink__test_node");
215216
auto non_default_options = rclcpp::NodeOptions();
216217
non_default_options
@@ -254,6 +255,7 @@ TEST(TestNodeOptions, copy) {
254255
EXPECT_EQ(non_default_options.automatically_declare_parameters_from_overrides(),
255256
copied_options.automatically_declare_parameters_from_overrides());
256257
EXPECT_EQ(non_default_options.time_source(), copied_options.time_source());
258+
rclcpp::shutdown();
257259
}
258260
}
259261

0 commit comments

Comments
 (0)