Skip to content

Commit c291afe

Browse files
committed
Use correct redis url if not default when creating Connection
1 parent 509c77c commit c291afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_asyncio/test_sentinel_managed_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
pytestmark = pytest.mark.asyncio
1111

1212

13-
async def test_connect_retry_on_timeout_error():
13+
async def test_connect_retry_on_timeout_error(connect_args):
1414
"""Test that the _connect function is retried in case of a timeout"""
1515
connection_pool = mock.AsyncMock()
1616
connection_pool.get_master_address = mock.AsyncMock(
17-
return_value=("localhost", 6379)
17+
return_value=(connect_args["host"], connect_args["port"])
1818
)
1919
conn = SentinelManagedConnection(
2020
retry_on_timeout=True,

0 commit comments

Comments
 (0)