Skip to content
New issue

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

Add test for kafka-quickstart #249

Merged
merged 6 commits into from
Aug 19, 2019

Conversation

kmos
Copy link
Contributor

@kmos kmos commented Jul 30, 2019

Hi,

this PR add test for kafka-quickstart.

Resolves #145

  • avoid to use kafka in test profile
  • add resteasy-client

@gsmet gsmet requested a review from cescoffier July 30, 2019 14:01
try (SseEventSource source = SseEventSource.target(target).build()) {
source.register(inboundSseEvent -> received.add(Double.valueOf(inboundSseEvent.readData())));
source.open();
Thread.sleep(500); // Consume events for just 500 ms
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you switch to Awaitility instead?

await()atMost(10000).until(() -> received.size() < 5)

received would need to be a CopyOnWritearrayList but that would be more robust.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed, great suggestion!

@kmos
Copy link
Contributor Author

kmos commented Aug 7, 2019

What can I do to solve this PR? I have addressed the change requested. @cescoffier

@cescoffier cescoffier merged commit 872fbf5 into quarkusio:development Aug 19, 2019
@kmos kmos deleted the add.test.for.kafka.quickstart branch August 26, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants