Solr
  1. Solr
  2. SOLR-1821

Failing testGetDateFormatEvaluator in TestEvaluatorBag

    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.

        Activity

        Chris Male created issue -
        Chris Male made changes -
        Field Original Value New Value
        Attachment SOLR-1821.patch [ 12438772 ]
        Robert Muir made changes -
        Assignee Robert Muir [ rcmuir ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5 [ 12313566 ]
        Resolution Fixed [ 1 ]
        Hoss Man made changes -
        Fix Version/s 3.1 [ 12314371 ]
        Fix Version/s 4.0 [ 12314992 ]
        Grant Ingersoll made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Robert Muir
            Reporter:
            Chris Male
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development