-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Issue #3762 - use the default port of 0 for WebSocket tests #3770
Conversation
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
static ServletContextHandler _context; | ||
|
||
@BeforeAll | ||
public static void setup() throws Exception | ||
{ | ||
_server = new Server(); | ||
ServerConnector connector = new ServerConnector(_server); | ||
connector = new ServerConnector(_server); | ||
connector.setPort(8080); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't figure out how to change this one because it uses xml HttpClient provider
https://github.com/eclipse/jetty.project/blob/0d9de2822670cee7e2ca16ced238594d2c1ea45f/jetty-websocket/javax-websocket-server/src/test/resources/jetty-websocket-httpclient.xml#L3-L18
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set the arg with a property: <Arg><New ...><Arg><Property ..>...
and then set externally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once you fix the test that also @gregw commented about.
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
wasn't sure how to set the arg with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Lachlan Roberts lachlan@webtide.com
#3762