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

Native Tests fail when quarkus.http.test-port is set to 0 #168

Closed
snowdrop-bot opened this issue Sep 5, 2020 · 0 comments
Closed

Native Tests fail when quarkus.http.test-port is set to 0 #168

snowdrop-bot opened this issue Sep 5, 2020 · 0 comments
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

Describe the bug

When running a native test with quarkus.http.test-port=0 you get the following :

[INFO] Running org.acme.NativeExampleResourceIT
Executing target/code-with-quarkus-1.0.0-SNAPSHOT-runner, -Dquarkus.http.port=0, -Dquarkus.http.ssl-port=8444, -Dtest.url=http://localhost:0

The runner is executed with localhost:0 (instead of a random port). So it hangs, and then the test fails with:

Caused by: java.lang.RuntimeException: Unable to start native image in 60s

Expected behavior

The test should pass using a random port (like JVM mode tests).

Actual behavior

To Reproduce
Steps to reproduce the behavior:

  1. Go to code.quarkus.io and generate a new project
  2. mvn verify -Pnative works
  3. Add the property quarkus.http.test-port=0to the application.properties file
  4. mvn verify -Pnative FAILS

Configuration

quarkus.http.test-port=0

Environment (please complete the following information):

  • Output of uname -a or ver: Darwin iMac-Pro-de-Antonio.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64
  • Output of java -version: java version "11.0.6" 2020-01-14 LTS
  • GraalVM version (if different from Java):
  • Quarkus version or git rev: 1.7.1-FINAL
  • Build tool (ie. output of mvnw --version or gradlew --version): 3.6.3_1

Additional context
(Add any other context about the problem here.)


quarkusio#11891


$upstream:11891$

@snowdrop-bot snowdrop-bot added 7 - Community development upstream/closed The issue has been closed in the upstream repository labels Sep 5, 2020
@geoand geoand closed this as completed Sep 17, 2020
@snowdrop-bot snowdrop-bot reopened this Sep 17, 2020
@geoand geoand closed this as completed Sep 28, 2020
@snowdrop-bot snowdrop-bot reopened this Sep 28, 2020
@geoand geoand closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants