diff --git a/booklore-api/src/test/java/org/booklore/service/BookRuleEvaluatorServiceIntegrationTest.java b/booklore-api/src/test/java/org/booklore/service/BookRuleEvaluatorServiceIntegrationTest.java index 24d9a5688..568143235 100644 --- a/booklore-api/src/test/java/org/booklore/service/BookRuleEvaluatorServiceIntegrationTest.java +++ b/booklore-api/src/test/java/org/booklore/service/BookRuleEvaluatorServiceIntegrationTest.java @@ -624,7 +624,7 @@ class BookRuleEvaluatorServiceIntegrationTest { @Test void thisPeriod_month_matchesThisMonthBook() { BookEntity thisMonth = createBook("This Month Book"); - thisMonth.setAddedOn(Instant.now().minus(1, ChronoUnit.DAYS)); + thisMonth.setAddedOn(Instant.now().minus(1, ChronoUnit.HOURS)); em.merge(thisMonth); BookEntity notThisMonth = createBook("Not This Month Book");