-
Notifications
You must be signed in to change notification settings - Fork 418
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
max_duration not respected in spin_some for StaticSingleThreadedExecutor and EventsExecutor #2462
Comments
@alsora FYI we found this while working on some other things. I didn't have much time to investigate it, but it's possible the
|
@wjwwood I opened a PR to fix the unit-test for the events executor: #2465 However, I'm confused by the expected behavior here. |
Ok, I think that there was also a problem in the
This shouldn't blindly return "ready", but it should check whether the guard condition was triggered (i.e. if it was part of the waitset). So the method should probably become something like this
|
Reopening this, since the test is still disabled for the |
Bug report
Required Info:
Steps to reproduce issue
Remove the logic to skip the tests for
spin_some_max_duration
for theStaticSingleThreadedExecutor
andEventsExecutor
:rclcpp/rclcpp/test/rclcpp/executors/test_executors.cpp
Lines 574 to 582 in a85382a
Run the test and see that they fail.
Expected behavior
The tests should pass as they are testing expected and documented behavior for
spin_some
.Actual behavior
Tests fail.
Additional information
See also: #2460
The text was updated successfully, but these errors were encountered: