Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing shutdown call in test class (backport #695) #698

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions example_11/test/test_carlikebot_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ def test_check_if_msgs_published(self):
],
)

<<<<<<< HEAD
=======
def test_remapped_topic(self):
# we don't want to implement a tf lookup here
# so just check if the unmapped topic is not published
old_topic = "/bicycle_steering_controller/tf_odometry"
wait_for_topics = WaitForTopics([(old_topic, TFMessage)])
assert not wait_for_topics.wait(), f"Topic '{old_topic}' found, but should be remapped!"
wait_for_topics.shutdown()

>>>>>>> d6383fc (Add missing shutdown (#695))

# TODO(anyone): enable this if shutdown of ros2_control_node does not fail anymore
# @launch_testing.post_shutdown_test()
Expand Down
Loading