Fixing CronParserTest so that it checks 24 hour format properly when
using a timezone shifted by 30 minutes

Thanks to Jamie Goodyear for the patch

(cherry picked from commit 0f445a535f)
This commit is contained in:
Christopher L. Shannon (cshannon) 2016-02-22 12:50:07 +00:00
parent e81c32f63c
commit a1f309ea19
1 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,8 @@ public class CronParserTest {
calender.setTimeInMillis(next); calender.setTimeInMillis(next);
LOG.debug("next:" + calender.getTime()); LOG.debug("next:" + calender.getTime());
long result = next - current; long result = next - current;
if (startHours == 8 && startMinutes == 50) { if (startHours == 20 && startMinutes == 50) {
assertEquals(60*40*1000,result); assertEquals(60*40*1000,result); // allow for 30 min offset timezone
} else { } else {
assertEquals(60*10*1000,result); assertEquals(60*10*1000,result);
} }