Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9771

poll pool stats in loop instead of Thread.sleep in AbstractDatasourceCapacityPoliciesTestCase

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Verified (View Workflow)
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: 7.1.0.DR14
    • Fix Version/s: 7.1.0.DR16
    • Component/s: Test Suite
    • Labels:
      None

      Description

      There is Thread.sleep in AbstractDatasourceCapacityPoliciesTestCase.java#L130 and ResourceAdapterCapacityPoliciesTestCase.java#L148 which is used to wait until pool is filled with expected number of connections. But it is generally better to loop around for a while until things are in the right state, and then fail if that state does not happen within a (adjustable) timeout

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              simkam Martin Simka
              Reporter:
              simkam Martin Simka
              Tester:
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: