From b7f32f2a7962bac1ce9b99abc9f60643528e1a40 Mon Sep 17 00:00:00 2001 From: Amy Tai Date: Sun, 2 Dec 2018 12:31:57 -0500 Subject: [PATCH] Make views test more deterministic --- test/expected/views.out | 10 +++++----- test/sql/views.sql | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/expected/views.out b/test/expected/views.out index f7dc91883..f4f452617 100644 --- a/test/expected/views.out +++ b/test/expected/views.out @@ -66,13 +66,13 @@ SELECT * FROM timescaledb_information.hypertable; (4 rows) \c single :ROLE_DEFAULT_PERM_USER -SELECT * FROM timescaledb_information.hypertable; +SELECT * FROM timescaledb_information.hypertable ORDER BY table_schema,table_name; table_schema | table_name | table_owner | num_dimensions | num_chunks | table_size | index_size | toast_size | total_size --------------+------------+-------------------+----------------+------------+------------+------------+------------+------------ + closed | closed_ht | super_user | 1 | 1 | | | | + open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB public | ht1 | default_perm_user | 1 | 1 | 8192 bytes | 16 kB | | 24 kB public | ht2 | default_perm_user | 1 | 1 | 8192 bytes | 16 kB | 8192 bytes | 32 kB - open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB - closed | closed_ht | super_user | 1 | 1 | | | | (4 rows) -- filter by schema @@ -90,10 +90,10 @@ SELECT * FROM timescaledb_information.hypertable WHERE table_name = 'ht1'; (1 row) -- filter by owner -SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user'; +SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user' ORDER BY table_schema,table_name; table_schema | table_name | table_owner | num_dimensions | num_chunks | table_size | index_size | toast_size | total_size --------------+------------+-------------+----------------+------------+------------+------------+------------+------------ - open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB closed | closed_ht | super_user | 1 | 1 | | | | + open | open_ht | super_user | 1 | 3 | 24 kB | 48 kB | | 72 kB (2 rows) diff --git a/test/sql/views.sql b/test/sql/views.sql index 7dc2bf5e0..e08e0278a 100644 --- a/test/sql/views.sql +++ b/test/sql/views.sql @@ -37,7 +37,7 @@ INSERT INTO closed.closed_ht SELECT '2000-01-01'::TIMESTAMPTZ; SELECT * FROM timescaledb_information.hypertable; \c single :ROLE_DEFAULT_PERM_USER -SELECT * FROM timescaledb_information.hypertable; +SELECT * FROM timescaledb_information.hypertable ORDER BY table_schema,table_name; -- filter by schema SELECT * FROM timescaledb_information.hypertable WHERE table_schema = 'closed'; @@ -46,5 +46,5 @@ SELECT * FROM timescaledb_information.hypertable WHERE table_schema = 'closed'; SELECT * FROM timescaledb_information.hypertable WHERE table_name = 'ht1'; -- filter by owner -SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user'; +SELECT * FROM timescaledb_information.hypertable WHERE table_owner = 'super_user' ORDER BY table_schema,table_name;