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

Fix random tests failures due to spurious scheduler events

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0-HF24, 7.10-HF01, 8.1
    • Component/s: Core, Tests

      Description

      Some tests that check for events sent randomly fail due to additional events being present. For example:

      java.lang.AssertionError: expected:<[sessionSaved=1]> but was:<[ACEStatusUpdated=1, sessionSaved=1, updateACEStatus=1, workManagerCleanup=1]>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:144)
      	at org.nuxeo.ecm.core.TestSQLRepositoryFulltextQuery.assertEventSet(TestSQLRepositoryFulltextQuery.java:138)
      	at org.nuxeo.ecm.core.TestSQLRepositoryFulltextQuery.testFulltextReindexOnCreateDelete(TestSQLRepositoryFulltextQuery.java:987)
      

      This is due to the fact that periodic events are scheduled for various cleanup tasks. These schedules shouldn't be present in those tests.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: