Giter Site home page Giter Site logo

Comments (7)

SarpongAbasimi avatar SarpongAbasimi commented on July 19, 2024 1

sure, thank you very much @francescopellegrini. I will have a look at this again tomorrow

from embedded-kafka-schema-registry.

francescopellegrini avatar francescopellegrini commented on July 19, 2024

Hi @SarpongAbasimi, could you please share a minimal piece of code presenting this issue?
Thank you in advance

from embedded-kafka-schema-registry.

SarpongAbasimi avatar SarpongAbasimi commented on July 19, 2024

This is the test causing the error @francescopellegrini. It passes when I run a separate schema registry container.
when I use embedded Kafka with schema Registry, I get the error mentioned above.

from embedded-kafka-schema-registry.

SarpongAbasimi avatar SarpongAbasimi commented on July 19, 2024

Hi @SarpongAbasimi, could you please share a minimal piece of code presenting this issue?
Thank you in advance

Also just to mention I am using fs2-kafka
Ref - https://fd4s.github.io/fs2-kafka/docs/consumers

from embedded-kafka-schema-registry.

francescopellegrini avatar francescopellegrini commented on July 19, 2024

I'm not familiar with fs2-kafka, but I think the issue here is that your testing asynchronously, while embedded-kafka stops all of its processes at the end of the withRunningKafka clojure.

You need to use something like unsafeRunSync inside the clojure to retrieve the message, only then you will be able to assert on it (which could be done after the clojure).

from embedded-kafka-schema-registry.

SarpongAbasimi avatar SarpongAbasimi commented on July 19, 2024

Thanks @francescopellegrini.

I am not sure if I understand what you mean by clojure but the assertion is being done in the withRunningKafka

from embedded-kafka-schema-registry.

francescopellegrini avatar francescopellegrini commented on July 19, 2024

withRunningKafka function cannot return an async computation, like IO, because it will immediately stop all containers, thus making impossibile to check the result.

from embedded-kafka-schema-registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.