We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd476e commit ef8a566Copy full SHA for ef8a566
1 file changed
tests/test_broadcast.py
@@ -1,3 +1,5 @@
1
+# import asyncio
2
+
3
import pytest
4
5
from broadcaster import Broadcast
@@ -35,11 +37,11 @@ async def test_postgres():
35
37
assert event.message == "hello"
36
38
39
-@pytest.mark.skip("Deadlock on `next_published`")
40
@pytest.mark.asyncio
41
async def test_kafka():
42
async with Broadcast("kafka://localhost:9092") as broadcast:
43
async with broadcast.subscribe("chatroom") as subscriber:
44
+ await broadcast._backend._consumer._client.force_metadata_update() # type: ignore
45
await broadcast.publish("chatroom", "hello")
46
event = await subscriber.get()
47
assert event.channel == "chatroom"
0 commit comments