Skip to content

Commit

Permalink
Fix test failing with incorrect year from next date of cron
Browse files Browse the repository at this point in the history
  • Loading branch information
drumonii committed Jan 2, 2022
1 parent d5e48fd commit 8d6494d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void allRetrievalsCronExpression() {
Date nextExecutionDate = cronTrigger.nextExecutionTime(triggerContext);

assertThat(nextExecutionDate)
.hasYear(triggerDateTime.getYear())
.hasYear(triggerDateTime.plusDays(1L).getYear())
.hasDayOfMonth(triggerDateTime.plusDays(1L).getDayOfMonth())
.hasHourOfDay(triggerDateTime.getHour())
.hasMinute(0)
Expand Down

0 comments on commit 8d6494d

Please sign in to comment.