Removed directConnection workaround in SRV spec tests (#727)

This commit is contained in:
Julius Park 2021-09-15 12:04:34 -07:00 committed by GitHub
parent e3771587c3
commit 0fa86c8ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,12 +105,6 @@ def create_test(test_case):
# tests.
copts['tlsAllowInvalidHostnames'] = True
# The SRV spec tests assume drivers auto discover replica set
# members. This should be removed during PYTHON-2679.
if not self.load_balanced and (
'directconnection' not in result['options']):
copts['directConnection'] = False
client = MongoClient(uri, **copts)
wait_until(
lambda: hosts == client.nodes,