Skip to content

Commit

Permalink
fix(test_executors): Fix is_ready of TestWaitable
Browse files Browse the repository at this point in the history
Signed-off-by: Janosch Machowinski <[email protected]>
  • Loading branch information
Janosch Machowinski authored and Janosch Machowinski committed Nov 16, 2023
1 parent 9c098e5 commit eb39a3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rclcpp/test/rclcpp/executors/test_executors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ class TestWaitable : public rclcpp::Waitable
bool
is_ready(rcl_wait_set_t * wait_set) override
{
for (size_t i = 0; i < wait_set->size_of_guard_conditions; ++i) {
if (&gc_.get_rcl_guard_condition() == wait_set->guard_conditions[i]) {
return true;
}
}
return false;
(void)wait_set;
return true;
}
Expand Down

0 comments on commit eb39a3a

Please sign in to comment.