mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 01:32:18 +02:00
Fix VMScheduler unit test for daylight saving time (#11907)
This commit is contained in:
parent
e333ce9782
commit
255c4615dd
@ -238,7 +238,7 @@ public class VMSchedulerImplTest {
|
||||
Date expectedScheduledTime = Date.from(zonedDateTime.toInstant());
|
||||
|
||||
if (expectedScheduledTime.before(startDate)) {
|
||||
expectedScheduledTime = DateUtils.addDays(expectedScheduledTime, 1);
|
||||
expectedScheduledTime = Date.from(zonedDateTime.plusDays(1).toInstant());
|
||||
}
|
||||
|
||||
Date actualScheduledTime = vmScheduler.scheduleNextJob(vmSchedule, new Date());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user