I fixed two bugs in SolrUtils, one where the DateFormat used to format dates as UTC has the format string yyyy-MM-dd'T'HH:mm:ss'Z' but no UTC timezone set. This fix in turn requires the date format in the unit test used to control the formatting to have also UTC set. That's what I forgot. I think the bug is now fixed. I'll pass the patch over to Tobias so he can check it in. Again, sorry for the inconvenience.
-Christoph Am 11.05.2011 um 23:27 schrieb Josh Holtzman: > I just svn upped, and I now get the following error during a build. Is > anyone else seeing this? Reminds me of an old, old timezone relaed bug. > > Thanks, > Josh > > Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec <<< > FAILURE! > testSerializeDate(org.opencastproject.util.SolrUtilsTest) Time elapsed: > 0.004 sec <<< FAILURE! > org.junit.ComparisonFailure: expected:<2011-05-0[1]T05:59:13Z> but > was:<2011-05-0[2]T05:59:13Z> > at org.junit.Assert.assertEquals(Assert.java:123) > at org.junit.Assert.assertEquals(Assert.java:145) > at > org.opencastproject.util.SolrUtilsTest.testSerializeDate(SolrUtilsTest.java:62) > ... > > testSerializeDateRange(org.opencastproject.util.SolrUtilsTest) Time elapsed: > 0.001 sec <<< FAILURE! > org.junit.ComparisonFailure: expected:<[2011-05-1[0T00:00:00Z TO > 2011-05-12]T05:59:00Z]> but was:<[2011-05-1[1T00:00:00Z TO > 2011-05-13]T05:59:00Z]> > at org.junit.Assert.assertEquals(Assert.java:123) > at org.junit.Assert.assertEquals(Assert.java:145) > at > org.opencastproject.util.SolrUtilsTest.testSerializeDateRange(SolrUtilsTest.java:85) > > _______________________________________________ > Matterhorn mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn > > > To unsubscribe please email > [email protected] > _______________________________________________ _______________________________________________ Matterhorn mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn To unsubscribe please email [email protected] _______________________________________________
