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

[Elasticsearch 6] Failing integration test: CommercePriceListIndexerTest.testSearch with "expected:<1> but was:<3>"

    Details

      Description

      After fixing LPS-119146, some integration test failures could be seen in other modules when running ci:test:search. One of  them is com.liferay.commerce.price.list.internal.search.test.CommercePriceListIndexerTest.testSearch with the following stack trace:

      java.lang.AssertionError: 
      [
      SCENARIO Test price list search
      GIVEN I add a price list
      WHEN I search for price lists
      THEN The result will be 'only one', the price list added
      ]
      [
      Message: [{uid=[com.liferay.commerce.price.list.model.CommercePriceList_PORTLET_57613], entryClassPK=[57613], companyId=[57001], entryClassName=[com.liferay.commerce.price.list.model.CommercePriceList], scopeGroupId=[57610], groupId=[57610], name=[Master Base Price List], modified=[20200824183028]}, {uid=[com.liferay.commerce.price.list.model.CommercePriceList_PORTLET_57614], entryClassPK=[57614], companyId=[57001], entryClassName=[com.liferay.commerce.price.list.model.CommercePriceList], scopeGroupId=[57610], groupId=[57610], name=[Master Base Promotion], modified=[20200824183028]}, {uid=[com.liferay.commerce.price.list.model.CommercePriceList_PORTLET_57696], entryClassPK=[57696], companyId=[57001], entryClassName=[com.liferay.commerce.price.list.model.CommercePriceList], scopeGroupId=[57610], groupId=[57610], name=[4KmKmqsQ], modified=[20200824183030]}}, length=3, query=null] expected:<1> but was:<3>
      ]
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:834)
      	at org.junit.Assert.assertEquals(Assert.java:645)
      	at com.liferay.portal.search.test.util.HitsAssert.assertOnlyOne(HitsAssert.java:36)
      	at com.liferay.commerce.price.list.internal.search.test.CommercePriceListIndexerTest.testSearch(CommercePriceListIndexerTest.java:123)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745) 

        Attachments

          Activity

            People

            Assignee:
            adam.brandizzi Adam Brandizzi
            Reporter:
            adam.brandizzi Adam Brandizzi
            Engineering Assignee:
            Wade Cao
            Recent user:
            Adam Brandizzi
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package