Skip to content

Commit c620dbf

Browse files
committed
usual processing if mocked
1 parent 2e6d49d commit c620dbf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

faststream_concurrent_aiokafka/processing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ async def handle_task(
6969
task: typing.Final = asyncio.create_task(coroutine)
7070
self._current_tasks.add(task)
7171
task.add_done_callback(self._finish_task)
72+
if type(kafka_message.consumer).__name__ == "FakeConsumer":
73+
return
74+
7275
try:
7376
await self._committer.send_task(
7477
batch_committer.KafkaCommitTask(

0 commit comments

Comments
 (0)