Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2371

initialize the DefaultServer once to speed up test HttpContinueSslServletTestCase #1574

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 2.3.19.Final
    • 2.3.13.Final
    • Servlet
    • None

      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.

              flaviarnn Flavia Rainone
              testboost Les Miserables (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: