Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1366

Strange threading problems running quartz component tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.2
    • None
    • servicemix-quartz
    • None
    • Patch Available
    • Unit Test Broken

    Description

      Hi

      running the quartz tests causes strange failures on my machine. Sometimes the tests fail...

      I think this is because of a Thread.sleep(..) statement within the test waiting for messages to arrive.
      On my machine it seems that this timeslot is (sometimes) not 'enough'.

      I added a CountDownLatch to the receiver component so that the test don't need to call Thread.sleep().

      Kristian

      Attachments

        Activity

          People

            kkoehler Kristian Kohler
            kkoehler Kristian Kohler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: