Skip to content

Commit c565233

Browse files
authored
PYTHON-3671 Use default server selection timeout in test setup (#1191)
1 parent be355e2 commit c565233

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ def _check_user_provided(self):
536536
port,
537537
username=db_user,
538538
password=db_pwd,
539-
serverSelectionTimeoutMS=100,
540539
**self.default_client_options,
541540
)
542541

@@ -550,6 +549,8 @@ def _check_user_provided(self):
550549
return False
551550
else:
552551
raise
552+
finally:
553+
client.close()
553554

554555
def _server_started_with_auth(self):
555556
# MongoDB >= 2.0

0 commit comments

Comments
 (0)