Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22220

Fix random test failure testAutoVersioningBeforeAlwaysMinor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.2-SNAPSHOT
    • Fix Version/s: 9.2
    • Component/s: Core, Core DBS, Tests

      Description

      On very fast machines & databases, this test fails because two versions are created in the same millisecond:

      org.junit.ComparisonFailure: expected:<0.[2]> but was:<0.[1]>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.nuxeo.ecm.core.version.test.TestAutoVersioning.testAutoVersioningBeforeAlwaysMinor(TestAutoVersioning.java:270)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: