We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey there, it's me again :)
Testing a consumer works perfectly fine when sticking to the provided example: https://junges.dev/documentation/laravel-kafka/v1.13/testing/7-mocking-your-kafka-consumer
Although when using a macro for the consumer the code in the handler callback is not executed at all.
So instead of
$consumer = Kafka::createConsumer(['mark-post-as-published-topic']) ->withHandler(function (KafkaConsumerMessage $message) { // business logic })->build();
I use a macro like this:
$consumer = Kafka::consumer('mark-post-as-published-topic') ->withHandler(function (KafkaConsumerMessage $message) { // business logic })->build();
The macro only adds SASL to the consumer:
Kafka::macro('consumer', function (string $topic) use ($sasl) { return $this->createConsumer([$topic])->withSasl($sasl); });
Please help! Thanks in advance
The text was updated successfully, but these errors were encountered:
Hey @lentex thanks for reporting this. I fixed the issue for v2, will work on a fix for v1.13.x later today.
Sorry, something went wrong.
mateusjunges
Successfully merging a pull request may close this issue.
Hey there, it's me again :)
Testing a consumer works perfectly fine when sticking to the provided example:
https://junges.dev/documentation/laravel-kafka/v1.13/testing/7-mocking-your-kafka-consumer
Although when using a macro for the consumer the code in the handler callback is not executed at all.
So instead of
I use a macro like this:
The macro only adds SASL to the consumer:
Please help!
Thanks in advance
The text was updated successfully, but these errors were encountered: