-
Notifications
You must be signed in to change notification settings - Fork 210
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
MOTOR-1209: Motor's DriverInfo should not be overwritten #233
Conversation
client = motor.MotorClient(server.uri, driver=driver_info) | ||
|
||
# Trigger connection. | ||
future = client.db.command("ping") |
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.
Is this needed? IIUC the ismaster is from SDAM which happens automatically so this future could be removed.
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.
Ah, I wasn't sure if it was needed. I assumed that the ping was the source.
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.
Yeah, I tried removing the ping call, and the test now crashes with asyncio.exceptions.TimeoutError: Operation timed out after 5 seconds
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.
Could you git merge master
to make it easier to ensure this new test passes?
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.
LGTM!
Ticket: https://jira.mongodb.org/browse/MOTOR-1209