You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/03/14 23:25:27 UTC

[jira] Commented: (SOLR-1821) Failing testGetDateFormatEvaluator in TestEvaluatorBag

    [ https://issues.apache.org/jira/browse/SOLR-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845144#action_12845144 ] 

Robert Muir commented on SOLR-1821:
-----------------------------------

Nice, fixes the issue.

Can you commit this? It would help us in our current work to ensure we are not breaking tests.


> 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.