Skip to content

PYTHON-5852 Fix inverted polling condition in TestSearchIndexProse test_case_3#2843

Merged
blink1073 merged 3 commits into
mongodb:masterfrom
blink1073:PYTHON-5852
Jun 4, 2026
Merged

PYTHON-5852 Fix inverted polling condition in TestSearchIndexProse test_case_3#2843
blink1073 merged 3 commits into
mongodb:masterfrom
blink1073:PYTHON-5852

Conversation

@blink1073
Copy link
Copy Markdown
Member

@blink1073 blink1073 commented Jun 3, 2026

PYTHON-5852

Changes in this PR

Fix a bug in the test_case_3 prose test ("Driver can successfully drop search indexes") that caused it to always time out waiting for index deletion.

Test Plan

  • Evergreen patch 6a2094be running test-search-index-helpers passed successfully.

Checklist

Checklist for Author

  • Did you update the changelog (if necessary)?
  • Is there test coverage?
  • Is any followup work tracked in a JIRA ticket? If so, add link(s).

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Is all relevant documentation (README or docstring) updated?

blink1073 added 3 commits June 3, 2026 11:21
…st_case_3

The loop that waits for index deletion used `if indices: break`, which exits
when the list is non-empty — the opposite of what the comment describes.
Change to `if not indices: break` so the loop correctly exits once
listSearchIndexes returns an empty array.
@blink1073 blink1073 marked this pull request as ready for review June 3, 2026 21:31
@blink1073 blink1073 requested a review from a team as a code owner June 3, 2026 21:31
@blink1073 blink1073 requested a review from NoahStapp June 3, 2026 21:31
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@blink1073 blink1073 merged commit 27f90ff into mongodb:master Jun 4, 2026
87 of 89 checks passed
@blink1073 blink1073 deleted the PYTHON-5852 branch June 4, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants