Skip to content

fix wrong use of constructor and hanging test#596

Merged
dirk-thomas merged 2 commits intomasterfrom
fix_wrong_use_of_constructor
Nov 29, 2018
Merged

fix wrong use of constructor and hanging test#596
dirk-thomas merged 2 commits intomasterfrom
fix_wrong_use_of_constructor

Conversation

@dirk-thomas
Copy link
Copy Markdown
Member

First commit: passing rclcpp::ParameterType::PARAMETER_NOT_SET to the rclcpp::ParameterValue constructor is wrong since it interprets the parameter as an integer value. This currently results in the test to print the following error message:

[ERROR] []: use_sim_time parameter set to something besides a bool

This happened in the Windows builds for an OpenSplice contribution: https://ci.ros2.org/job/ci_windows/5590/

Beside that error message the test still timed out.

Second commit: adds a call to rclcpp::shutdown() in the tests tear down function.

With these changes doesn't time out anymore and doesn't print any error message for invalid parameters anymore: https://ci.ros2.org/job/ci_windows/5596/

@dirk-thomas dirk-thomas added bug Something isn't working in review Waiting for review (Kanban column) labels Nov 29, 2018
@dirk-thomas dirk-thomas self-assigned this Nov 29, 2018
@dirk-thomas dirk-thomas merged commit 36262a5 into master Nov 29, 2018
@dirk-thomas dirk-thomas deleted the fix_wrong_use_of_constructor branch November 29, 2018 14:15
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants