-
Notifications
You must be signed in to change notification settings - Fork 90
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
fix: make subscriberIT test less flaky #340
fix: make subscriberIT test less flaky #340
Conversation
Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details.
lettering is not enabled
Codecov Report
@@ Coverage Diff @@
## master #340 +/- ##
=========================================
Coverage 79.21% 79.21%
Complexity 318 318
=========================================
Files 21 21
Lines 2892 2892
Branches 155 155
=========================================
Hits 2291 2291
Misses 536 536
Partials 65 65 Continue to review full report at Codecov.
|
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.
Thank you for fixing the flaky test! I often had to run it twice for java8 samples tests to pass. Hope I'll no longer need to do that.
The subsciberIT test is flaky because of our sync pull examples. We are expecting to receive all 10 published messages, when a pull callable might not return all of the messages (the specified number to pull is the MAX amount that will be returned, not the expected amount). To make this test less flaky, I am changing the test to publish fewer messages.
Fixes #329 ☕️