mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 02:23:49 +08:00
Fix flaky gapfill test
The gapfill test assumed 1 day is always <= 24 hours which is not true during DST switch leading to a failing test when run in that time. This PR fixes the test to have reproducable output even when run during DST switch.
This commit is contained in:
parent
ad97d266c0
commit
3ae9d6ca18
@ -2026,10 +2026,10 @@ GROUP BY 1;
|
||||
|
||||
-- time_bucket_gapfill with now() as start
|
||||
SELECT
|
||||
time_bucket_gapfill('1d'::interval,t)
|
||||
time_bucket_gapfill('1h'::interval,t)
|
||||
FROM (VALUES (now()),(now())) v(t)
|
||||
WHERE
|
||||
t >= now() AND t < now() - '1d'::interval
|
||||
t >= now() AND t < now() - '1h'::interval
|
||||
GROUP BY 1;
|
||||
time_bucket_gapfill
|
||||
---------------------
|
||||
|
@ -1239,10 +1239,10 @@ GROUP BY 1;
|
||||
|
||||
-- time_bucket_gapfill with now() as start
|
||||
SELECT
|
||||
time_bucket_gapfill('1d'::interval,t)
|
||||
time_bucket_gapfill('1h'::interval,t)
|
||||
FROM (VALUES (now()),(now())) v(t)
|
||||
WHERE
|
||||
t >= now() AND t < now() - '1d'::interval
|
||||
t >= now() AND t < now() - '1h'::interval
|
||||
GROUP BY 1;
|
||||
|
||||
-- time_bucket_gapfill with multiple constraints
|
||||
|
Loading…
x
Reference in New Issue
Block a user