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

Failing unit test: DateRangeTermQueryTest.testDateRangeTermQuery

    Details

      Description

      After fixing LPS-119057, some test failures still happened. Once of them was DateRangeTermQueryTest.testDateRangeTermQuery, both in Elasticsearch 6 and Elasticsearch 7, which fails with the following stack trace:

      java.lang.AssertionError: Retrieved hits expected:<4> but was:<0>
      	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.query.BaseDateRangeTermQueryTestCase.lambda$testDateRangeTermQuery$1(BaseDateRangeTermQueryTestCase.java:85)
      	at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase.lambda$assertSearch$0(BaseIndexingTestCase.java:193)
      	at com.liferay.portal.search.test.util.IdempotentRetryAssert.lambda$retryAssert$0(IdempotentRetryAssert.java:62)
      	at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:43)
      	at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:59)
      	at com.liferay.portal.search.test.util.indexing.BaseIndexingTestCase.assertSearch(BaseIndexingTestCase.java:191)
      	at com.liferay.portal.search.test.util.query.BaseDateRangeTermQueryTestCase.testDateRangeTermQuery(BaseDateRangeTermQueryTestCase.java:64)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      

        Attachments

          Activity

            People

            Assignee:
            kevin.cruz Kevin Cruz
            Reporter:
            adam.brandizzi Adam Brandizzi
            Engineering Assignee:
            Kevin Cruz
            Recent user:
            Annie Wu (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package