Fix relocate_extension test

The relocate_extension test used a relative time in the drop_chunks
call which makes the test always fail after a certain time. This
patch changes the test to use absolute time.
This commit is contained in:
Sven Klemm 2019-03-23 20:26:35 +01:00 committed by Sven Klemm
parent 75c0750952
commit 2b646d170f
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ SELECT AVG(temp) AS avg_tmp, "testSchema0".time_bucket('1 day', time, INTERVAL '
-- testing time_bucket END
-- testing drop_chunks START
SELECT "testSchema0".drop_chunks(interval '2 years', 'test_ts');
SELECT "testSchema0".drop_chunks('2017-03-01'::timestamp, 'test_ts');
drop_chunks
-------------

View File

@ -49,7 +49,7 @@ SELECT AVG(temp) AS avg_tmp, "testSchema0".time_bucket('1 day', time, INTERVAL '
-- testing time_bucket END
-- testing drop_chunks START
SELECT "testSchema0".drop_chunks(interval '2 years', 'test_ts');
SELECT "testSchema0".drop_chunks('2017-03-01'::timestamp, 'test_ts');
SELECT * FROM test_ts ORDER BY time;
SELECT "testSchema0".drop_chunks(interval '1 minutes', 'test_tz');
SELECT * FROM test_tz ORDER BY time;