Skip to content

Commit eb39a3a

Browse files
Janosch MachowinskiJanosch Machowinski
authored andcommitted
fix(test_executors): Fix is_ready of TestWaitable
Signed-off-by: Janosch Machowinski <[email protected]>
1 parent 9c098e5 commit eb39a3a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rclcpp/test/rclcpp/executors/test_executors.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ class TestWaitable : public rclcpp::Waitable
392392
bool
393393
is_ready(rcl_wait_set_t * wait_set) override
394394
{
395+
for (size_t i = 0; i < wait_set->size_of_guard_conditions; ++i) {
396+
if (&gc_.get_rcl_guard_condition() == wait_set->guard_conditions[i]) {
397+
return true;
398+
}
399+
}
400+
return false;
395401
(void)wait_set;
396402
return true;
397403
}

0 commit comments

Comments
 (0)