Skip to content

KafkaEmbeddedHolder - topic created but not added. #676

@nklmish

Description

@nklmish

NOTE: In order to reproduce this issue locally please clone https://github.com/nklmish/spring-kafka-issue-676 and execute ./gradlew clean test.

I ll like to use the same broker(s) for multiple test classes (garyrussell@24c399e), and saw this example mentioned in docs. However, it seems that topic(s) are created in Kafka (I have verified this) but never appended inside KafkaEmbedded#topics as a result when we try to access a newly created topic, e.g.
embeddedKafka.consumeFromAnEmbeddedTopic(consumer, SOME_TOPIC);
An assertion error gets thrown due to this .

We should update the topic array after this call. I can also submit a PR if the above suggestions sounds reasonable.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions