From 41e20381902beb18c7ffc3c0826e367b7cbcf74f Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:04:42 +0100 Subject: [PATCH] fix: use ChronoUnit for Instant arithmetic in PostgresStatsStoreIT --- .../com/cameleer3/server/app/storage/PostgresStatsStoreIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cameleer3-server-app/src/test/java/com/cameleer3/server/app/storage/PostgresStatsStoreIT.java b/cameleer3-server-app/src/test/java/com/cameleer3/server/app/storage/PostgresStatsStoreIT.java index d3a1548f..efdbeea1 100644 --- a/cameleer3-server-app/src/test/java/com/cameleer3/server/app/storage/PostgresStatsStoreIT.java +++ b/cameleer3-server-app/src/test/java/com/cameleer3/server/app/storage/PostgresStatsStoreIT.java @@ -46,7 +46,7 @@ class PostgresStatsStoreIT extends AbstractPostgresIT { jdbc.execute("CALL refresh_continuous_aggregate('stats_1m_all', null, null)"); - StatsTimeseries ts = statsStore.timeseries(now.minusMinutes(1), now.plusMinutes(10), 5); + StatsTimeseries ts = statsStore.timeseries(now.minus(1, ChronoUnit.MINUTES), now.plus(10, ChronoUnit.MINUTES), 5); assertNotNull(ts); assertFalse(ts.buckets().isEmpty()); }