[ 
https://issues.apache.org/jira/browse/SOLR-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Male updated SOLR-1821:
-----------------------------

    Attachment: SOLR-1821.patch

Attaching a patch to the test which uses GregorianCalendar instances rather 
than the current System ticks.

> Failing testGetDateFormatEvaluator in TestEvaluatorBag
> ------------------------------------------------------
>
>                 Key: SOLR-1821
>                 URL: https://issues.apache.org/jira/browse/SOLR-1821
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.5
>            Reporter: Chris Male
>         Attachments: SOLR-1821.patch
>
>
> On some TimeZones (such as EDT currently), 
> TestEvaluatorBag.testGetDateFormatEvaluator fails with the following error:
> {code:xml}
> 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)
> {code}
> This seems due to the reliance on the System ticks in order to create the 
> Date to compare against.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to