Uploaded image for project: 'Commons Sandbox'
  1. Commons Sandbox
  2. SANDBOX-251

PipelineTest.java - Inconsistent Failures

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Pipeline
    • None
    • Windows XP SP3 (JRE 1.6) and Mac OS X 10.5.4 (JRE 1.5)

    Description

      The "testRaise()" and "testRaiseOnBranch()" method fail most of the time. The Thread.yield() statement does not wait for the event notifications to complete. The asserts fail because the objects are checked prior to the completion of the event notifications.

      I had a patch created for this issue but it seems I can't attach it to this ticket. To get them to pass consistently add a Thread.sleep(1) statement on the line just before Thread.yield() in both methods and add "throws Exception" to the "testRaise()" method signature.

      Attachments

        1. pipeline_test_sleep.patch
          1 kB
          Matt Sanford

        Activity

          People

            Unassigned Unassigned
            pagannn Jon Sanford
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: