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

Use dynamic port numbers for unit tests the examples

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11.0
    • Component/s: examples
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: