-
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
Wait for server to be ready in action client tests #685
Conversation
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
🤞 /cc @nuclearsandwich |
@@ -273,6 +273,8 @@ TEST_F(TestClient, async_send_goal_but_ignore_feedback_and_result) | |||
auto action_client = rclcpp_action::create_client<ActionType>(client_node, action_name); | |||
ASSERT_TRUE(action_client->wait_for_action_server(WAIT_FOR_SERVER_TIMEOUT)); | |||
|
|||
ASSERT_TRUE(action_client->wait_for_action_server(std::chrono::seconds(10))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does adding 10 seconds to WAIT_FOR_SERVER_TIMEOUT
on the line above this one also fix the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XD I didn't even see that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So my grep skills failed me.
It looks like it is already waiting for 10 seconds... odd that an additional wait causes the tests to pass 🙁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests were not actually waiting anywhere close to 10 seconds either.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooh, my bad. I was working off of the crystal branch, which is missing the wait calls.
See #686 instead |
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
This should address #683 once backported to
crytsal