fix: use ChronoUnit for Instant arithmetic in PostgresStatsStoreIT

This commit is contained in:
hsiegeln
2026-03-16 19:04:42 +01:00
parent ea687a342c
commit 41e2038190

View File

@@ -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());
}