From 2b646d170f46b1a0d9f09561f344cb8f0538d4bc Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Sat, 23 Mar 2019 20:26:35 +0100 Subject: [PATCH] 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. --- test/expected/relocate_extension.out | 2 +- test/sql/relocate_extension.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/expected/relocate_extension.out b/test/expected/relocate_extension.out index 66f1aa5eb..7268d69e0 100644 --- a/test/expected/relocate_extension.out +++ b/test/expected/relocate_extension.out @@ -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 ------------- diff --git a/test/sql/relocate_extension.sql b/test/sql/relocate_extension.sql index 68f6a71df..da491574f 100644 --- a/test/sql/relocate_extension.sql +++ b/test/sql/relocate_extension.sql @@ -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;