You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Kafka::assertPublishedOn works when producing messages but is not working when producing batch messages.
To Reproduce
Produce a message batch and send it, on tests assert that using Kafka::assertPublishedOn('topic', 1), it will fail while Kafka::assertPublished() and Kafka::assertPublishedTimes(1) work. it seems there is a problem with topic name in this situation using Kafka::fake();
Code Examples
$message = newMessage(
headers: ['header-key' => 'header-value'],
body: ['key' => 'value'],
key: 'kafka key here'
);
$messageBatch = newMessageBatch();
$messageBatch->push($message);
$messageBatch->push($message);
$producer = Kafka::publishOn('some-kafka-topic')
->withConfigOptions(['key' => 'value']);
$producer->sendBatch($messageBatch);
Kafka::assertPublishedTimes(2); // <====== this works just fineKafka::assertPublished(); // <====== this works just fineKafka::assertPublishedOnTimes('some-kafka-topic', 2); // <====== this failsKafka::assertPublishedOn('some-kafka-topic'); // <====== this fails
The text was updated successfully, but these errors were encountered:
Describe the bug
Kafka::assertPublishedOn works when producing messages but is not working when producing batch messages.
To Reproduce
Produce a message batch and send it, on tests assert that using
Kafka::assertPublishedOn('topic', 1)
, it will fail whileKafka::assertPublished()
andKafka::assertPublishedTimes(1)
work. it seems there is a problem with topic name in this situation usingKafka::fake()
;Code Examples
The text was updated successfully, but these errors were encountered: