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.
- is required by
-
NXP-21346 Fix randomly-failing testFulltextReindexOnCreateDelete
- Resolved