File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments