Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4814

Use dynamic port numbers for unit tests the examples

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.11.0
    • examples
    • None
    • Moderate

    Description

      Its a bit annoying that CI servers and whatnot fail tests due to a port number in use issue when testing the examples.
      > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 9,000: Address already in use

      We should use dynamic port numbers, like we do when testing components. camel-test has a util class to find a free port number.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: