Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1821

Failing testGetDateFormatEvaluator in TestEvaluatorBag

    XMLWordPrintableJSON

Details

    Description

      On some TimeZones (such as EDT currently), TestEvaluatorBag.testGetDateFormatEvaluator fails with the following error:

      org.junit.ComparisonFailure: 
      Expected :2010-03-12 17:15
      Actual   :2010-03-12 18:15
      	at org.junit.Assert.assertEquals(Assert.java:96)
      	at org.junit.Assert.assertEquals(Assert.java:116)
      	at org.apache.solr.handler.dataimport.TestEvaluatorBag.testGetDateFormatEvaluator(TestEvaluatorBag.java:127)
      

      This seems due to the reliance on the System ticks in order to create the Date to compare against.

      Attachments

        1. SOLR-1821.patch
          2 kB
          Chris Male

        Activity

          People

            rcmuir Robert Muir
            cmale Chris Male
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: