#197 ✓closed
Ben Hood

Tests are timezone sensitive

Reported by Ben Hood | March 10th, 2011 @ 11:42 PM

When you run the build in a non-GMT timezone, some tests fail:

Failed tests: 
  deletingSource(net.lshift.diffa.kernel.differencing.LuceneVersionCorrelationStoreTest)
  deletingDest(net.lshift.diffa.kernel.differencing.LuceneVersionCorrelationStoreTest)
  queryUpstreamRangeReturnsInIDOrder(net.lshift.diffa.kernel.differencing.LuceneVersionCorrelationStoreTest)
  queryDownstreamRangeReturnsInIDOrder(net.lshift.diffa.kernel.differencing.LuceneVersionCorrelationStoreTest)
  schematize(net.lshift.diffa.kernel.config.EndpointTest)

This appears to be due to differences in date comparisons, see the attached Surefire reports.

Furthermore, as part of #204, some questionable date handling w.r.t. time zones appears to have crept into the code base. My suggestion is to centralize all date parsing and make sure that time zones are handled consistently.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Real Time Differencing Tool.

Shared Ticket Bins

People watching this ticket

Pages