Skip to content

Commit

Permalink
Undo test debugging changes
Browse files Browse the repository at this point in the history
Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
  • Loading branch information
provinzkraut committed Nov 30, 2023
1 parent 0069ab0 commit 5c1c521
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion tests/unit/test_channels/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import AsyncGenerator, cast
from unittest.mock import AsyncMock

import asyncpg
import pytest
from _pytest.fixtures import FixtureRequest
from redis.asyncio.client import Redis
Expand Down
5 changes: 1 addition & 4 deletions tests/unit/test_channels/test_plugin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import asyncio
import time
from secrets import token_hex
from typing import cast
from unittest.mock import AsyncMock, MagicMock
Expand Down Expand Up @@ -143,7 +142,7 @@ async def test_ws_route_handlers_receive_arbitrary_message(channels_backend: Cha


@pytest.mark.flaky(reruns=5)
async def test_create_ws_route_handlers_arbitrary_channels_allowed(channels_backend: ChannelsBackend) -> None:
def test_create_ws_route_handlers_arbitrary_channels_allowed(channels_backend: ChannelsBackend) -> None:
channels_plugin = ChannelsPlugin(
backend=channels_backend,
arbitrary_channels_allowed=True,
Expand All @@ -158,8 +157,6 @@ async def test_create_ws_route_handlers_arbitrary_channels_allowed(channels_back
channels_plugin.publish("something", "foo")
assert ws.receive_text(timeout=2) == "something"

time.sleep(0.001)

with client.websocket_connect("/ws/bar") as ws:
channels_plugin.publish("something else", "bar")
assert ws.receive_text(timeout=2) == "something else"
Expand Down

0 comments on commit 5c1c521

Please sign in to comment.