-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 #11891
Comments
/cc @geoand |
As mentioned at, https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/quarkus.2Ehttp.2Etest-port.3D0.20and.20Native.20Tests, this has to do with the NativeImageLauncher not using the proper port when connecting to the application. I'll take a look at it next week unless someone wants to be dive in sooner. |
#11912 should fix this |
Make native tests work with random port
I tried this with 1.8.0.Final, but get the following exception: application.properties:
Is there anything else I need to configure? |
@tisoft how were you able to reproduce that? |
It fails everytime with my real test, but I haven't been able to extract a minimal reproducer yet. Might be caused by extensions I'm using, or something funny in my test case. Will report back as soon as I have a reproducer, I can share. |
Could reproduce it. it is caused by |
Thanks, that is very useful! |
Describe the bug
When running a native test with
quarkus.http.test-port=0
you get the following :The runner is executed with
localhost:0
(instead of a random port). So it hangs, and then the test fails with:Expected behavior
The test should pass using a random port (like JVM mode tests).
Actual behavior
To Reproduce
Steps to reproduce the behavior:
mvn verify -Pnative
worksquarkus.http.test-port=0
to theapplication.properties
filemvn verify -Pnative
FAILSConfiguration
quarkus.http.test-port=0
Environment (please complete the following information):
uname -a
orver
: 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_64java -version
: java version "11.0.6" 2020-01-14 LTSmvnw --version
orgradlew --version
): 3.6.3_1Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: