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

Fix random Drive versioning unit test failure

    XMLWordPrintable

    Details

      Description

      The following tests sometimes fail randomly under mysql:

      org.nuxeo.drive.service.adapter.TestDefaultFileSystemItemFactory.testFileItem

      org.junit.ComparisonFailure: expected:<0.[0]> but was:<0.[1]>
      	at org.junit.Assert.assertEquals(Assert.java:123)
      	at org.junit.Assert.assertEquals(Assert.java:145)
      	at org.nuxeo.drive.service.adapter.TestDefaultFileSystemItemFactory.assertVersion(TestDefaultFileSystemItemFactory.java:764)
      	at org.nuxeo.drive.service.adapter.TestDefaultFileSystemItemFactory.testFileItem(TestDefaultFileSystemItemFactory.java:537)
      

      org.nuxeo.drive.service.adapter.TestDefaultFileSystemItemFactory.testFolderItem

      java.lang.AssertionError: 
      	at org.junit.Assert.fail(Assert.java:91)
      	at org.junit.Assert.assertTrue(Assert.java:43)
      	at org.junit.Assert.assertFalse(Assert.java:68)
      	at org.junit.Assert.assertFalse(Assert.java:79)
      	at org.nuxeo.drive.service.adapter.TestDefaultFileSystemItemFactory.testFolderItem(TestDefaultFileSystemItemFactory.java:660)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: