Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-109731

OrganizationLocalServiceWhenSearchingOrganizationsTreeTest failing intermittently with ComparisonFailure: "was:<... userId=20128, uuid=["

    Details

      Description

      The failures in LPS-111717 are similar, yet different since LPS-111717 is caused by assets not being indexed whereas the tests in this ticket are failing even with assets indexed.

      Tests that are failing:

           [exec] com.liferay.organizations.service.test.OrganizationLocalServiceWhenSearchingOrganizationsTreeTest > testShouldIncludeSuborganizationsAsAdminUser FAILED
           [exec]     org.junit.ComparisonFailure: {organizationsTree=[{mvccVersion=0, uuid=14cf3329-e361-7423-05dc-d4a200879136, externalReferenceCode=, organizationId=37480, companyId=20098, userId=20128, userName=Test Test, createDate=Wed Apr 15 17:16:36 GMT 2020, modifiedDate=Wed Apr 15 17:16:36 GMT 2020, parentOrganizationId=37476, treePath=/37476/37480/, name=qP0kbAbX, type=organization, recursable=true, regionId=0, countryId=0, statusId=12017, comments=, logoId=0}]}->[{comments=, recursable=true, type=organization, userName=Test Test, userId=20128, uuid=38530c43-9b2b-c969-f7d6-a07ba5f3eaba, countryId=0, parentOrganizationId=37480, externalReferenceCode=, organizationId=37484, companyId=20098, statusId=12017, regionId=0, name=IwEEIdqu, mvccVersion=0, logoId=0, treePath=/37476/37480/37484/}, {comments=, recursable=true, type=organization, userName=Test Test, userId=20128, uuid=14cf3329-e361-7423-05dc-d4a200879136, countryId=0, parentOrganizationId=37476, externalReferenceCode=, organizationId=37480, companyId=20098, statusId=12017, regionId=0, name=qP0kbAbX, mvccVersion=0, logoId=0, treePath=/37476/37480/}] expected:<... userId=20128, uuid=[14cf3329-e361-7423-05dc-d4a200879136, countryId=0, parentOrganizationId=37476, externalReferenceCode=, organizationId=37480, companyId=20098, statusId=12017, regionId=0, name=qP0kbAbX, mvccVersion=0, logoId=0, treePath=/37476/37480/}, {comments=, recursable=true, type=organization, userName=Test Test, userId=20128, uuid=38530c43-9b2b-c969-f7d6-a07ba5f3eaba, countryId=0, parentOrganizationId=37480, externalReferenceCode=, organizationId=37484, companyId=20098, statusId=12017, regionId=0, name=IwEEIdqu, mvccVersion=0, logoId=0, treePath=/37476/37480/37484]/}]> but was:<... userId=20128, uuid=[38530c43-9b2b-c969-f7d6-a07ba5f3eaba, countryId=0, parentOrganizationId=37480, externalReferenceCode=, organizationId=37484, companyId=20098, statusId=12017, regionId=0, name=IwEEIdqu, mvccVersion=0, logoId=0, treePath=/37476/37480/37484/}, {comments=, recursable=true, type=organization, userName=Test Test, userId=20128, uuid=14cf3329-e361-7423-05dc-d4a200879136, countryId=0, parentOrganizationId=37476, externalReferenceCode=, organizationId=37480, companyId=20098, statusId=12017, regionId=0, name=qP0kbAbX, mvccVersion=0, logoId=0, treePath=/37476/37480]/}]>
           [exec]     	at org.junit.Assert.assertEquals(Assert.java:115)
           [exec]     	at com.liferay.portal.search.test.util.AssertUtils.assertEquals(AssertUtils.java:53)
           [exec]     	at com.liferay.organizations.service.test.OrganizationLocalServiceWhenSearchingOrganizationsTreeTest._assertSearch(OrganizationLocalServiceWhenSearchingOrganizationsTreeTest.java:244)
           [exec]     	at com.liferay.organizations.service.test.OrganizationLocalServiceWhenSearchingOrganizationsTreeTest.testShouldIncludeSuborganizationsAsAdminUser(OrganizationLocalServiceWhenSearchingOrganizationsTreeTest.java:122)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  11 weeks, 4 days ago

                  Packages

                  Version Package
                  7.3.4 CE GA5
                  Master