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

Issue #3762 - use the default port of 0 for WebSocket tests #3770

Merged
merged 2 commits into from
Jun 13, 2019

Conversation

lachlan-roberts
Copy link
Contributor

@lachlan-roberts lachlan-roberts commented Jun 12, 2019

Signed-off-by: Lachlan Roberts lachlan@webtide.com

#3762

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);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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

Copy link
Contributor

@sbordet sbordet left a 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>
@lachlan-roberts
Copy link
Contributor Author

wasn't sure how to set the arg with <Property ..> and set that property externally, I managed to do a similar thing with a System property

Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lachlan-roberts lachlan-roberts merged commit 6fcc3d1 into jetty-10.0.x Jun 13, 2019
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-3762-testPort branch June 13, 2019 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants