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

zenoh: Shutdown the node properly in component tests #2633

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Sep 18, 2024

No description provided.

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@alsora
Copy link
Collaborator

alsora commented Sep 18, 2024

Why this change? The context is initialized in the SetupTestCase method so it should be shut down there

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. the fix itself makes sense to me that we call shutdown explicitly once it completes the all test cases with this fixture.

i would also like to know @alsora 's comment above. i think default_context will be destructed when the process space is destroyed, then context will be shutdown. What kind of problem did you have with rmw_zenoh?

@Yadunund
Copy link
Member

@ahcorde any chance you opened this PR because you ran into the panic documented here? ros2/rmw_zenoh#170

If so I wonder if my comment here explains why we need this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants