Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1487

ParallelComputerBuilderTest fails on overloaded system because internal delay are shorter than blocking time of JVM

    XMLWordPrintableJSON

Details

    Description

      The delays are 500 ms and variations 250 ms.
      The JVM was blocked for 675 ms.
      From these measurements, the new delay should be 3-times longer at least.

      [windows] Tests in error:
      [windows] separatePoolsWithSuiteAndSequentialClasses(org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilderTest): (..)
      [windows] parallelMethodsReuseOneOrTwoThreads(org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilderTest): (..)
      [windows] suiteAndClassInOnePool(org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilderTest): (..)

      suiteAndClassInOnePool:
      Expected: (between <1450L> and <1750L> or between <1950L> and <2250L> or between <2450L> and <2750L>)
      but: was <3175L>

      parallelMethodsReuseOneOrTwoThreads:
      Expected: between <1450L> and <1750L>
      but: was <1837L>

      separatePoolsWithSuiteAndSequentialClasses:
      Expected: between <1450L> and <1750L>
      but: was <3562L>
      In this case the JVM was blocked for 2.062 second and the delays should be 9 times longer. The test ParallelComputerBuilderTest has small number of tests, so we can prolong the delays 10 times.

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            tibordigana Tibor Digana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: