We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509c77c commit c291afeCopy full SHA for c291afe
tests/test_asyncio/test_sentinel_managed_connection.py
@@ -10,11 +10,11 @@
10
pytestmark = pytest.mark.asyncio
11
12
13
-async def test_connect_retry_on_timeout_error():
+async def test_connect_retry_on_timeout_error(connect_args):
14
"""Test that the _connect function is retried in case of a timeout"""
15
connection_pool = mock.AsyncMock()
16
connection_pool.get_master_address = mock.AsyncMock(
17
- return_value=("localhost", 6379)
+ return_value=(connect_args["host"], connect_args["port"])
18
)
19
conn = SentinelManagedConnection(
20
retry_on_timeout=True,
0 commit comments