Skip to content

Commit 60164fd

Browse files
lasuillardsergeyklay
authored andcommitted
chore: Prefer Redis default port 6379
1 parent 8b70d9f commit 60164fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_channels.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ def test_channels_parsing():
1414
result = Env.channels_url_config(url)
1515
assert result["BACKEND"] == "channels.layers.InMemoryChannelLayer"
1616

17-
url = "redis://user:password@localhost:5173/0"
17+
url = "redis://user:password@localhost:6379/0"
1818
result = Env.channels_url_config(url)
1919
assert result["BACKEND"] == "channels_redis.core.RedisChannelLayer"
20-
assert result["CONFIG"]["hosts"][0] == "redis://user:password@localhost:5173/0"
20+
assert result["CONFIG"]["hosts"][0] == "redis://user:password@localhost:6379/0"
2121

22-
url = "redis+pubsub://user:password@localhost:5173/0"
22+
url = "redis+pubsub://user:password@localhost:6379/0"
2323
result = Env.channels_url_config(url)
2424
assert result["BACKEND"] == "channels_redis.pubsub.RedisPubSubChannelLayer"
25-
assert result["CONFIG"]["hosts"][0] == "redis://user:password@localhost:5173/0"
25+
assert result["CONFIG"]["hosts"][0] == "redis://user:password@localhost:6379/0"

0 commit comments

Comments
 (0)