Skip to content

Commit

Permalink
fix: add pattern_event.wait()
Browse files Browse the repository at this point in the history
  • Loading branch information
doublehomixide committed Jan 8, 2025
1 parent 9230fd0 commit 233a127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/brokers/kafka/test_consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def pattern_handler(msg) -> None:
await br.start()
result = await br.publish(1, topic=queue)
assert isinstance(result, RecordMetadata), result
await pattern_event.wait()
assert pattern_event.is_set()

@pytest.mark.asyncio()
Expand Down

0 comments on commit 233a127

Please sign in to comment.