mirror of
https://github.com/apache/activemq.git
synced 2025-02-08 19:15:20 +00:00
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
This commit is contained in:
parent
f7941a7fbf
commit
0f445a535f
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user