Skip to content

PYTHON-5342 Fix test_dns_failures test #2336

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

Merged
merged 19 commits into from
May 8, 2025

Conversation

blink1073
Copy link
Member

No description provided.

@blink1073 blink1073 requested a review from NoahStapp May 8, 2025 15:53
@blink1073 blink1073 closed this May 8, 2025
@blink1073 blink1073 reopened this May 8, 2025
@@ -186,6 +184,9 @@ def dns_resolver_response():
):
await assertion_method(expected_response, client)

# Close the client early to avoid affecting the next scenario run.
await client.close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does leaving the client open have side effects?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed in office hours: the thought is that the patching was affecting the previous client(s) that were not yet garbage collected.

@blink1073 blink1073 merged commit 5914ea0 into mongodb:master May 8, 2025
67 of 70 checks passed
@blink1073 blink1073 deleted the test-windows-ctypes branch May 8, 2025 18:10
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