Add sleep to give enough time for server to be up #34133
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.
From local tests, it looks like even though we publish 10 messages, the server isn't up yet, so we miss the first couple of messages which is why the assertions fail. What isn't clear to me is why that has transient failures, but the regular read test doesn't
History: https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.timeZoneId=America%2FLos_Angeles&tests.container=org.apache.beam.sdk.io.mqtt.MqttIOTest
This is flakey enough that you can see this running locally, but adding in a sleep got rid of it. Ideaaly there would be a nicer method of checking if the server was up and ready to accept messages, but couldn't figure out a nice quick easy way to do that.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.