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

If Quarkus cannot be started, the TestResourceManager tries to start the resources several times #1928

Closed
gsmet opened this issue Apr 8, 2019 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@gsmet
Copy link
Member

gsmet commented Apr 8, 2019

In the integration main tests, I currently have a failure causing Quarkus to not start.

The TestResourceManager has already started the Kafka resource.

But if Quarkus has failed to start, the ExtensionState is not saved so we try to start the TestResourceManager several times leading to:

Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use
	at io.quarkus.example.test.KafkaTestResource.start(KafkaTestResource.java:30)
	at io.quarkus.test.common.TestResourceManager.start(TestResourceManager.java:50)
	... 49 more
@gsmet gsmet added the kind/bug Something isn't working label Apr 8, 2019
@stuartwdouglas stuartwdouglas self-assigned this Apr 9, 2019
@gsmet gsmet closed this as completed in e86bd37 Apr 9, 2019
gsmet added a commit that referenced this issue Apr 9, 2019
Fixes #1928, if boot fails do not attempt to run other tests
@gsmet gsmet added this to the 0.14.0 milestone Apr 9, 2019
@pantaoran
Copy link

I think I have this problem with Quarkus 0.15.0 when running the quickstarts (with slight modifications from playing with the code). Are you sure this is fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants