Fix flaky testConsumerReinitializationWithNoInitialMessages test#20934
Conversation
Signed-off-by: Varun Bharadwaj <varunbharadwaj1995@gmail.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20934 +/- ##
==========================================
Coverage 73.30% 73.31%
- Complexity 72484 72567 +83
==========================================
Files 5819 5819
Lines 331155 331352 +197
Branches 47840 47875 +35
==========================================
+ Hits 242769 242945 +176
- Misses 68876 68911 +35
+ Partials 19510 19496 -14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
06539a4
into
opensearch-project:main
Description
DefaultStreamPollerTests.testConsumerReinitializationWithNoInitialMessages test needs to wait for the consumer to be reinitialized before publishing the message, otherwise it'll read the message before and after reinitialization resulting in processing the message twice. This is not an issue, but results in flaky test. We update the test for deterministic result.
Related Issues
Resolves #20069
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.