test: cover HttpWaitStrategy response predicate retries - #11976
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. Summary by CodeRabbit
WalkthroughThe test adds a local HTTP server that returns ChangesHTTP wait strategy retry validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR adds localized regression coverage without changing production behavior; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What does this PR do?
Adds deterministic regression coverage for
HttpWaitStrategy.forResponsePredicate.The test uses a local HTTP endpoint that returns
not-readyfor the first request andreadyfor the second request. It verifies that the wait strategy retries the response predicate and succeeds after the response becomes acceptable.The test does not require Docker.
Why is this needed?
Issue #2516 reported that response predicates might only be evaluated once.
The current implementation on
mainalready retries correctly because a predicate mismatch is raised insideretryUntilSuccess. This test protects that behavior from future regressions.Related to #2516