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

Race condition in MockEndpoint with PER_CLASS tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.16.0
    • 3.17.0
    • camel-mock
    • None
    • Unknown
    • Regression, Unit Test Broken

    Description

      While working on CAMEL-17945, I realized that the tests with the scope PER_CLASS leveraging the MockEndpoint to define their assertions can fail randomly because of a race condition issue. Indeed, with the current code, a message of a previous test method can potentially call the method countDown on the latch of the following test method causing unexpected behavior.

      Attachments

        Issue Links

          Activity

            People

              essobedo Nicolas Filotto
              essobedo Nicolas Filotto
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: