PYTHON-3671 Use default server selection timeout in test setup (#1191)

This commit is contained in:
Shane Harvey 2023-04-14 14:45:57 -07:00 committed by GitHub
parent be355e2bea
commit c5652336ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,7 +536,6 @@ class ClientContext(object):
port,
username=db_user,
password=db_pwd,
serverSelectionTimeoutMS=100,
**self.default_client_options,
)
@ -550,6 +549,8 @@ class ClientContext(object):
return False
else:
raise
finally:
client.close()
def _server_started_with_auth(self):
# MongoDB >= 2.0