From 52e312f67e879db943e7bba82b8570d8d203f1fc Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Sat, 28 Feb 2026 22:14:54 -0700 Subject: [PATCH] fix flaky thisPeriod month test on 1st of month (#3130) --- .../service/BookRuleEvaluatorServiceIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");