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

Fix random test failures of GetLastDocumentVersionTest on DBS Mem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: Automation, Tests

      Description

      These randomly fail on very fast repositories (DBS Mem):

      • GetLastDocumentVersionTest.testGetLastMajorVersion
      • GetLastDocumentVersionTest.testGetLastMinorMajorVersion
      org.junit.ComparisonFailure: expected:<[3]> but was:<[2]>
      	at org.nuxeo.ecm.automation.core.operations.document.GetLastDocumentVersionTest.testGetLastMajorVersion(GetLastDocumentVersionTest.java:106)
      
      org.junit.ComparisonFailure: expected:<[3]> but was:<[2]>
      	at org.nuxeo.ecm.automation.core.operations.document.GetLastDocumentVersionTest.testGetLastMinorMajorVersion(GetLastDocumentVersionTest.java:139)
      

      This is due to two versions being created in the same millisecond.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m