Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-105

JBossTimerPeriodTestCase - wrong computatuon of maxDeviation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.2.BETA
    • 4.2.ALPHA1
    • None
    • None

      Class org.jboss.test.jbossmx.compliance.timer.JBossTimerPeriodTestCase uses wrong computation of maxDeviation value, which makes the test incorrect.

      org.jboss.test.jbossmx.compliance.timer.PeriodTestCase, line 195:

      long maxDeviation = expected / percentage;

      should be corrected to:

      long maxDeviation = expected * percentage / 100;

              vivekl_jira Vivek Lankshmanan (Inactive)
              dpospisil Dominik Pospisil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: