-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
…ongodb#2320)" This reverts commit e7db0e3.
@@ -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() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.