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
(cherry picked from commit 0f445a535f
)
This commit is contained in:
parent
e81c32f63c
commit
a1f309ea19
|
@ -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