Skip to content

max_duration not respected in spin_some for StaticSingleThreadedExecutor and EventsExecutor #2462

@wjwwood

Description

@wjwwood

Bug report

Required Info:

  • Operating System:
    • Linux
  • Installation type:
    • Source
  • Version or commit hash:
    • Rolling
  • DDS implementation:
    • Any
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

Remove the logic to skip the tests for spin_some_max_duration for the StaticSingleThreadedExecutor and EventsExecutor:

// TODO(wjwwood): The `StaticSingleThreadedExecutor` and the `EventsExecutor`
// do not properly implement max_duration (it seems), so disable this test
// for them in the meantime.
if (
std::is_same<ExecutorType, rclcpp::executors::StaticSingleThreadedExecutor>() ||
std::is_same<ExecutorType, rclcpp::experimental::executors::EventsExecutor>())
{
GTEST_SKIP();
}

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions