Fixes issue when the Redis URL also specifies a port

This commit is contained in:
Trenton Holmes
2022-12-03 18:30:21 -08:00
parent ea38eb01b2
commit 5b45a140b9
2 changed files with 8 additions and 2 deletions

View File

@@ -131,6 +131,11 @@ class TestIgnoreDateParsing(TestCase):
"unix:///run/redis/redis.sock?db=10",
),
),
# Just a host with a port
(
"redis://myredishost:6379",
("redis://myredishost:6379", "redis://myredishost:6379"),
),
]:
result = _parse_redis_url(input)
self.assertTupleEqual(expected, result)