Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4291

PeriodTestCase - wrong computation of maxDeviation

    XMLWordPrintable

Details

    Description

      Dominik Pospisil reports the following:

      The calculation for maximum deviation org.jboss.test.jbossmx.compliance.timer.PeriodTestCase, line 195
      is incorrect and can lead to misleading failures on some testcases.

      long maxDeviation = expected / percentage;
      should be corrected to:
      long maxDeviation = expected * percentage / 100;

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: