[Backport 2.x] Fix flaky TransportMultiSearchActionTests.testCancellation#17196
Merged
Conversation
I recently added this test, but incorrectly placed a CountDownLatch#await call on the test thread. With this change, we actually kick off the request, return control to the testy thread, cancel the request, then continue executing. Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 6f644e1) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
msfroh
approved these changes
Jan 29, 2025
reta
approved these changes
Jan 29, 2025
Contributor
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #17196 +/- ##
============================================
- Coverage 71.98% 71.95% -0.03%
+ Complexity 65987 65941 -46
============================================
Files 5341 5341
Lines 307114 307132 +18
Branches 44824 44825 +1
============================================
- Hits 221068 221008 -60
- Misses 67608 67620 +12
- Partials 18438 18504 +66 ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport 6f644e1 from #17193.