Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes ros2/build_farmer#197.
Without the patch the publisher publishes a single message and waits for the subscriber to receive that message. Since the matching between both might not have happened the
assertWaitFor
times out after 10s and callsassert
failing the test.This patch relies on ros2/launch#243 and publishes 10 messages - one every second - until the listener received it.
Before:![Build Status](https://camo.githubusercontent.com/e265e722429619cf14e9bd48eb7d2588a1812409992f18e657fbb0c877c14146/68747470733a2f2f63692e726f73322e6f72672f6275696c645374617475732f69636f6e3f6a6f623d63695f6c696e7578266275696c643d37313433)
![Build Status](https://camo.githubusercontent.com/4beb66c1d3cfa97aadd940aabdea6abc6efab6b2a0f6dc21c3b764ca6c469d13/68747470733a2f2f63692e726f73322e6f72672f6275696c645374617475732f69636f6e3f6a6f623d63695f6c696e7578266275696c643d37313435)
After: