Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldziher committed Jul 1, 2023
1 parent efac905 commit 3020f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion litestar/channels/backends/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def stream_events(self) -> AsyncGenerator[tuple[str, Any], None]:
await asyncio.sleep(self._stream_sleep_no_subscriptions) # no subscriptions found so we sleep a bit
continue

if message := await self._pub_sub.get_message(ignore_subscribe_messages=True):
if message := await self._pub_sub.get_message(ignore_subscribe_messages=True, timeout=None): # type: ignore
channel = message["channel"].decode()
data = message["data"]
yield channel, data
Expand Down
2 changes: 1 addition & 1 deletion tests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
image: redis:latest
restart: always
ports:
- "6379:6379"
- "6397:6379" # use a non-standard port here
spanner:
image: gcr.io/cloud-spanner-emulator/emulator:latest
ports:
Expand Down

0 comments on commit 3020f16

Please sign in to comment.