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

Random failure in ITCollectionsTest#testAddDocumentToCollectionAndRemove

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0
    • Fix Version/s: 7.4
    • Component/s: Collections, Tests

      Description

      http://qa.nuxeo.org/jenkins/job/IT-nuxeo-master-tests-cap-tomcat-postgresql/25/testReport/junit/org.nuxeo.ftest.cap/ITCollectionsTest/testAddDocumentToCollectionAndRemove/

      As we can see in the screenshot, expected items pasted to the collection are not there.
      http://qa.nuxeo.org/jenkins/job/IT-nuxeo-master-tests-cap-tomcat-postgresql/25/artifact/nuxeo/nuxeo-distribution/nuxeo-distribution-cap-webdriver-tests/target/screenshot-lastpage-org.nuxeo.ftest.cap.ITCollectionsTest-testAddDocumentToCollectionAndRemove2042421082660141402.png

      This looks like a regression: maybe the server is slower than it used to be so async events are not finished when expected.

      We could call a WaitForAsyncExec operation in JS, as we do in the Drive Python functional tests that call NuxeoDriveWaitForAsyncCompletion.

      Message d'erreur
      
      expected:<2> but was:<0>
      Pile d'exécution
      
      java.lang.AssertionError: expected:<2> but was:<0>
      	at org.junit.Assert.fail(Assert.java:91)
      	at org.junit.Assert.failNotEquals(Assert.java:645)
      	at org.junit.Assert.assertEquals(Assert.java:126)
      	at org.junit.Assert.assertEquals(Assert.java:470)
      	at org.junit.Assert.assertEquals(Assert.java:454)
      	at org.nuxeo.ftest.cap.ITCollectionsTest.testAddDocumentToCollectionAndRemove(ITCollectionsTest.java:216)
      Sortie standard
      
      02:26:26,267 ERROR [AbstractTest] Test 'org.nuxeo.ftest.cap.ITCollectionsTest#testAddDocumentToCollectionAndRemove' failed
      java.lang.AssertionError: expected:<2> but was:<0>
      	at org.junit.Assert.fail(Assert.java:91)
      	at org.junit.Assert.failNotEquals(Assert.java:645)
      	at org.junit.Assert.assertEquals(Assert.java:126)
      	at org.junit.Assert.assertEquals(Assert.java:470)
      	at org.junit.Assert.assertEquals(Assert.java:454)
      	at org.nuxeo.ftest.cap.ITCollectionsTest.testAddDocumentToCollectionAndRemove(ITCollectionsTest.java:216)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      	at org.nuxeo.functionaltests.LogTestWatchman$1.evaluate(LogTestWatchman.java:96)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:24)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:113)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:85)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:54)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:134)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: