Skip to content

Commit

Permalink
Fix test (#488)
Browse files Browse the repository at this point in the history
This fix is needed for this PR to pass tests
ros2/rclcpp#1612

Signed-off-by: Mauro Passerino <[email protected]>

Co-authored-by: Mauro Passerino <[email protected]>
  • Loading branch information
mauropasse and Mauro Passerino authored Nov 29, 2021
1 parent 2eddc57 commit b50fd75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test_rclcpp/test/test_waitable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ class WaitableWithTimer : public rclcpp::Waitable
return 1u;
}

bool
void
add_to_wait_set(rcl_wait_set_t * wait_set) override
{
rcl_ret_t ret = rcl_wait_set_add_timer(wait_set, timer_.get(), &timer_idx_);
return RCL_RET_OK == ret;
if (RCL_RET_OK != ret) {
throw std::runtime_error("failed to add timer to wait set");
}
}

bool
Expand Down

0 comments on commit b50fd75

Please sign in to comment.