Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1351

NestedWorkAndContextsTestCase#testStartWorkUnsupportedContext fails intermittently on slower machines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Test suite
    • None

      NestedWorkAndContextsTestCase#testStartWorkUnsupportedContext fails intermittently on slower machines because nested work is started before test itself invokes barrier.await and therefore execution of second work isn't stopped.

      Expected order of threads is:
      test – disabled until workA invokes barrier.await())
      workA
      workB (nested work) – disabled

      But sometimes it is:
      workA
      workB throws Exception

      I'm not sure how to fix this correctly but simplest solution seems to be adding Thread.sleep to Work

              msimka@redhat.com Martin Simka
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: