File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ async def _unmanaged_async_mongo_client(
1027
1027
auth_mech = kwargs .get ("authMechanism" , "" )
1028
1028
if async_client_context .auth_enabled and authenticate and auth_mech != "MONGODB-OIDC" :
1029
1029
# Only add the default username or password if one is not provided.
1030
- res = parse_uri (uri )
1030
+ res = await parse_uri (uri )
1031
1031
if (
1032
1032
not res ["username" ]
1033
1033
and not res ["password" ]
@@ -1058,7 +1058,7 @@ async def _async_mongo_client(
1058
1058
auth_mech = kwargs .get ("authMechanism" , "" )
1059
1059
if async_client_context .auth_enabled and authenticate and auth_mech != "MONGODB-OIDC" :
1060
1060
# Only add the default username or password if one is not provided.
1061
- res = parse_uri (uri )
1061
+ res = await parse_uri (uri )
1062
1062
if (
1063
1063
not res ["username" ]
1064
1064
and not res ["password" ]
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ async def run_test(self):
162
162
# and re-run these assertions.
163
163
else :
164
164
try :
165
- parse_uri (uri )
165
+ await parse_uri (uri )
166
166
except (ConfigurationError , ValueError ):
167
167
pass
168
168
else :
You can’t perform that action at this time.
0 commit comments