Skip to content

Commit f834b89

Browse files
committed
add missing awaits
1 parent 2c69412 commit f834b89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/asynchronous/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"]

test/asynchronous/test_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)