diff --git a/backend/src/test/java/com/drumonii/loltrollbuild/batch/scheduling/RetrievalJobsSchedulingTest.java b/backend/src/test/java/com/drumonii/loltrollbuild/batch/scheduling/RetrievalJobsSchedulingTest.java index 396160b3a..e52d2400f 100644 --- a/backend/src/test/java/com/drumonii/loltrollbuild/batch/scheduling/RetrievalJobsSchedulingTest.java +++ b/backend/src/test/java/com/drumonii/loltrollbuild/batch/scheduling/RetrievalJobsSchedulingTest.java @@ -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)