Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

jacobperron
Copy link
Member

This should address #683 once backported to crytsal

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron added the in progress Actively being worked on (Kanban column) label Apr 5, 2019
@jacobperron
Copy link
Member Author

🤞

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

/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)));
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try.

Copy link
Member Author

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 🙁

Copy link
Member Author

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.

Copy link
Member Author

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.

@jacobperron
Copy link
Member Author

See #686 instead

@jacobperron jacobperron closed this Apr 5, 2019
@jacobperron jacobperron deleted the jacob/wait_for_server branch April 5, 2019 17:41
@jacobperron jacobperron removed the in progress Actively being worked on (Kanban column) label Apr 5, 2019
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants