Skip to content

Conversation

juliusgeo
Copy link
Contributor

No description provided.

@juliusgeo juliusgeo requested a review from ShaneHarvey October 26, 2021 21:04
sleep(2*common.MIN_SRV_RESCAN_INTERVAL)
final_topology = set(client.topology_description.server_descriptions())
self.assertIn(response[0], final_topology)
self.assertIn(response[1], final_topology)
Copy link
Member

Choose a reason for hiding this comment

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

We can use assert_nodelist_change instead of:

                sleep(2*common.MIN_SRV_RESCAN_INTERVAL)
                final_topology = set(client.topology_description.server_descriptions())
                self.assertIn(response[0], final_topology)
                self.assertIn(response[1], final_topology)

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 could have have sworn I tried using assert_nodelist_change and it didn't work, but I just tried it again and it does work. Done.

"mongodb+srv://test22.test.build.10gen.cc/?srvServiceName"
"=customname")
with SrvPollingKnobs(
dns_resolver_nodelist_response=nodelist_callback):
Copy link
Member

@ShaneHarvey ShaneHarvey Oct 26, 2021

Choose a reason for hiding this comment

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

This needs to be rebased to fix the dns_resolver_nodelist_response rename in PYTHON-2832

@juliusgeo juliusgeo marked this pull request as ready for review October 26, 2021 23:47
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 once the tests pass.

@juliusgeo juliusgeo merged commit ca46cb2 into mongodb:master Oct 27, 2021
juliusgeo added a commit to juliusgeo/mongo-python-driver that referenced this pull request Apr 5, 2022
juliusgeo added a commit to juliusgeo/mongo-python-driver that referenced this pull request Apr 7, 2022
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.

2 participants