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

[UNDERTOW-2371] initialize the DefaultServer once to speed up test HttpContinueSslServletTestCase #1574

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TestBoost
Copy link

There are five tests in the test class HttpContinueSslServletTestCase. However, they reply on the same DefaultServer to send post http request. The time cost of start or stop for the DefaultServer is high. They are not modifying the contents of the DefaultServer, thus we can just initialize the DefaultServer once before or after all test methods inside test class HttpContinueSslServletTestCase.

The test runtime can jump from 5.43160 s to 1.8027 s after applying these changes when run on our machine.

@baranowb
Copy link
Contributor

baranowb commented Apr 3, 2024

@TestBoost Could you please create a ticket?

@baranowb baranowb added enhancement Enhances existing behaviour or code under verification Currently being verified (running tests, reviewing) before posting a review to contributor waiting CI check Ready to be merged but waiting for CI check labels Apr 3, 2024
@TestBoost TestBoost changed the title initialize the DefaultServer once to speed up test HttpContinueSslServletTestCase [UNDERTOW-2371] initialize the DefaultServer once to speed up test HttpContinueSslServletTestCase Apr 3, 2024
@TestBoost
Copy link
Author

Sure, I just submit a ticket here https://issues.redhat.com/browse/UNDERTOW-2371. I don't know why the test class Http2ClientTestCase fails because the DefaultServer is already closed. Maybe we also need some checks in the test Http2ClientTestCase too.

@baranowb baranowb added the waiting PR update Awaiting PR update(s) from contributor before merging label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances existing behaviour or code under verification Currently being verified (running tests, reviewing) before posting a review to contributor waiting CI check Ready to be merged but waiting for CI check waiting PR update Awaiting PR update(s) from contributor before merging
Projects
None yet
2 participants