Skip to content

Commit

Permalink
Force update metadata on Kafka test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex committed Nov 16, 2022
1 parent ccd476e commit ef8a566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_broadcast.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# import asyncio

import pytest

from broadcaster import Broadcast
Expand Down Expand Up @@ -35,11 +37,11 @@ async def test_postgres():
assert event.message == "hello"


@pytest.mark.skip("Deadlock on `next_published`")
@pytest.mark.asyncio
async def test_kafka():
async with Broadcast("kafka://localhost:9092") as broadcast:
async with broadcast.subscribe("chatroom") as subscriber:
await broadcast._backend._consumer._client.force_metadata_update() # type: ignore
await broadcast.publish("chatroom", "hello")
event = await subscriber.get()
assert event.channel == "chatroom"
Expand Down

0 comments on commit ef8a566

Please sign in to comment.