File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -887,6 +887,7 @@ async def test_2_6_ALLOWED_HOSTS_defaults_ignored(self):
887
887
async def test_3_1_authentication_failure_with_cached_tokens_fetch_a_new_token_and_retry (self ):
888
888
# Create a AsyncMongoClient and an OIDC callback that implements the provider logic.
889
889
client = await self .create_client ()
890
+ await client .aconnect ()
890
891
# Poison the cache with an invalid access token.
891
892
# Set a fail point for ``find`` command.
892
893
async with self .fail_point (
@@ -953,6 +954,7 @@ async def test_4_1_reauthentication_succeeds(self):
953
954
# Create a ``AsyncMongoClient`` configured with a custom OIDC callback that
954
955
# implements the provider logic.
955
956
client = await self .create_client ()
957
+ await client .aconnect ()
956
958
957
959
# Set a fail point for the find command.
958
960
async with self .fail_point (
Original file line number Diff line number Diff line change @@ -885,6 +885,7 @@ def test_2_6_ALLOWED_HOSTS_defaults_ignored(self):
885
885
def test_3_1_authentication_failure_with_cached_tokens_fetch_a_new_token_and_retry (self ):
886
886
# Create a MongoClient and an OIDC callback that implements the provider logic.
887
887
client = self .create_client ()
888
+ client ._connect ()
888
889
# Poison the cache with an invalid access token.
889
890
# Set a fail point for ``find`` command.
890
891
with self .fail_point (
@@ -951,6 +952,7 @@ def test_4_1_reauthentication_succeeds(self):
951
952
# Create a ``MongoClient`` configured with a custom OIDC callback that
952
953
# implements the provider logic.
953
954
client = self .create_client ()
955
+ client ._connect ()
954
956
955
957
# Set a fail point for the find command.
956
958
with self .fail_point (
You can’t perform that action at this time.
0 commit comments