Skip to content

Conversation

@Jibola
Copy link
Contributor

@Jibola Jibola commented Nov 8, 2023

@Jibola Jibola requested a review from a team as a code owner November 8, 2023 14:26
@Jibola Jibola requested review from ShaneHarvey and removed request for a team November 8, 2023 14:26
client = motor.MotorClient(server.uri, driver=driver_info)

# Trigger connection.
future = client.db.command("ping")
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Member

@ShaneHarvey ShaneHarvey left a 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?

@Jibola Jibola requested a review from ShaneHarvey November 13, 2023 20:57
Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

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

LGTM!

@Jibola Jibola merged commit a1c57b7 into master Nov 14, 2023
@Jibola Jibola deleted the MOTOR-1209 branch November 14, 2023 20:35
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