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

Add Keep Alive system Property to External Properties and tests #4672

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

tvallin
Copy link
Contributor

@tvallin tvallin commented Jan 5, 2021

Signed-off-by: tvallin thibault.vallin@oracle.com

Signed-off-by: tvallin <thibault.vallin@oracle.com>
Signed-off-by: tvallin <thibault.vallin@oracle.com>
@Before
public void startServer() {
server = GrizzlyHttpServerFactory.createHttpServer(BASE_URI);
Runtime.getRuntime().addShutdownHook(new Thread(server::shutdownNow));
Copy link
Member

@jbescos jbescos Jan 14, 2021

Choose a reason for hiding this comment

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

Is this necessary?. In theory the server will shutdown in the @After section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, thanks for pointing that out. I made the same mistake on other PR. I am going to fix it everywhere.

Signed-off-by: tvallin <thibault.vallin@oracle.com>
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.

None yet

2 participants