Skip to content

Commit

Permalink
chore: Prefer Redis default port 6379
Browse files Browse the repository at this point in the history
  • Loading branch information
lasuillard authored and sergeyklay committed Nov 4, 2024
1 parent 8b70d9f commit 60164fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ def test_channels_parsing():
result = Env.channels_url_config(url)
assert result["BACKEND"] == "channels.layers.InMemoryChannelLayer"

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

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

0 comments on commit 60164fd

Please sign in to comment.