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

Fix randomly-failing TestSnapshotWithDocPersist.testPersistWithLiveDoc on Oracle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.10-HF01, 9.1
    • Component/s: Tests

      Description

      On Oracle this test fails randomly:

      org.nuxeo.apidoc.test.TestSnapshotWithDocPersist.testPersistWithLiveDoc
      	Suppressed: java.lang.AssertionError
      		at org.junit.Assert.fail(Assert.java:86)
      		at org.junit.Assert.assertTrue(Assert.java:41)
      		at org.junit.Assert.assertTrue(Assert.java:52)
      		at org.nuxeo.ecm.core.test.TransactionalFeature.nextTransaction(TransactionalFeature.java:79)
      		at org.nuxeo.ecm.core.test.TransactionalFeature.nextTransaction(TransactionalFeature.java:64)
      		at org.nuxeo.ecm.core.test.CoreFeature.waitForAsyncCompletion(CoreFeature.java:263)
      		at org.nuxeo.ecm.core.test.CoreFeature.cleanupSession(CoreFeature.java:267)
      		at org.nuxeo.ecm.core.test.CoreFeature.afterTeardown(CoreFeature.java:256)
      

      This seems due to the fact that the Oracle instance is slow and waiting for async jobs to finish takes a long time.
      —> increase the timeout

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: