mirror of https://github.com/apache/activemq.git
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);
|
||||
LOG.debug("next:" + calender.getTime());
|
||||
long result = next - current;
|
||||
if (startHours == 8 && startMinutes == 50) {
|
||||
assertEquals(60*40*1000,result);
|
||||
if (startHours == 20 && startMinutes == 50) {
|
||||
assertEquals(60*40*1000,result); // allow for 30 min offset timezone
|
||||
} else {
|
||||
assertEquals(60*10*1000,result);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue