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(
10271027 auth_mech = kwargs .get ("authMechanism" , "" )
10281028 if async_client_context .auth_enabled and authenticate and auth_mech != "MONGODB-OIDC" :
10291029 # Only add the default username or password if one is not provided.
1030- res = parse_uri (uri )
1030+ res = await parse_uri (uri )
10311031 if (
10321032 not res ["username" ]
10331033 and not res ["password" ]
@@ -1058,7 +1058,7 @@ async def _async_mongo_client(
10581058 auth_mech = kwargs .get ("authMechanism" , "" )
10591059 if async_client_context .auth_enabled and authenticate and auth_mech != "MONGODB-OIDC" :
10601060 # Only add the default username or password if one is not provided.
1061- res = parse_uri (uri )
1061+ res = await parse_uri (uri )
10621062 if (
10631063 not res ["username" ]
10641064 and not res ["password" ]
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ async def run_test(self):
162162 # and re-run these assertions.
163163 else :
164164 try :
165- parse_uri (uri )
165+ await parse_uri (uri )
166166 except (ConfigurationError , ValueError ):
167167 pass
168168 else :
You can’t perform that action at this time.
0 commit comments