-
Notifications
You must be signed in to change notification settings - Fork 529
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
Configurable server port for the tests #465
Comments
Hummm that will be a hard one to solve, you need to review all tests... Or run tests inside docker... |
Why would that be? |
because the port is not configurable (at the moment) so you would need to look into all super classes that the tests extend and make it configurable there. Anyway it should be some work but i guess it won't be a paramount. |
Maybe I don't understand, but why are you not using the port 0 or the method explained in http://vertx.io/blog/vert-x-application-configuration/ |
I don't know. |
@pmlopes We could use automatic ports given by ServerSocket. Looks correct to me... |
we're not using port 0 because that feature got introduced with 3.2 if i'm not mistaken and vertx-web tests predate that. Maybe we should refactor the tests to do so and probably use vertx-unit instead of the blocking api we currently have. But that my friends is a huge refactor, not complicated but time consuming :) |
Yes, you are right, it was introduced in vert.x 3.2 |
keep in mind that using a specific port can be quite useful when you want to use wireshark to see what's happening on the wire |
I've been dwelling on this from time to time and this is what I came up with:
What do you think about that ideology? |
Would it suffice to update the base class, WebTestBase, with the described logic, and update its subclasses to use this newly added functionality from the super class rather then using hard-coding values like 8080? |
@biolearning sorry for the late reply, sure you can proceed |
@biolearning Still not done? |
Hi @brunoais , |
@dratler I'm not working on it. I'm not a member of this so I'm not keeping track if someone is working on this. |
Hi @pmlopes , |
Hi @dratler, it's a low priority bug. If you would like to fix it, please open a pull request and we will assist with any help you need. |
Currently
On my PC, port 8080 is permanently in use for a personal server.
Currently, every time I want to test I have either to change the port on multiple places or turn off my server so that vert.x can bind to a port.
Request
May one change vert.x's testing framework so it may read (maybe in a properties file?) the port vert.x should listen to?
If so, how do you suggest?
The text was updated successfully, but these errors were encountered: