From 2dfa2290283646050be9fd8ab988577726aa01c8 Mon Sep 17 00:00:00 2001 From: gindibay Date: Thu, 14 Dec 2023 05:55:17 +0300 Subject: [PATCH] Fixes flaky tests --- src/test/regress/expected/pg_dist_database_size.out | 9 +++++++++ src/test/regress/sql/pg_dist_database_size.sql | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/test/regress/expected/pg_dist_database_size.out b/src/test/regress/expected/pg_dist_database_size.out index f2581c953..074cff6af 100644 --- a/src/test/regress/expected/pg_dist_database_size.out +++ b/src/test/regress/expected/pg_dist_database_size.out @@ -128,6 +128,15 @@ DETAIL: on server postgres@localhost:xxxxx connectionId: xxxxxxx RESET client_min_messages; reset citus.log_remote_commands; drop function round_to_nearest_ten(BIGINT); +SELECT result FROM run_command_on_all_nodes('delete from pg_dist_database where databaseid in (select oid from pg_database where datname in (''test_group0'', ''test_group1'', ''test_group2''))'); + result +--------------------------------------------------------------------- + DELETE 3 + DELETE 3 + DELETE 3 +(3 rows) + +set citus.enable_create_database_propagation to true; drop DATABASE test_group0; drop DATABASE test_group1; drop DATABASE test_group2; diff --git a/src/test/regress/sql/pg_dist_database_size.sql b/src/test/regress/sql/pg_dist_database_size.sql index 4841df516..46fbe1184 100644 --- a/src/test/regress/sql/pg_dist_database_size.sql +++ b/src/test/regress/sql/pg_dist_database_size.sql @@ -97,6 +97,10 @@ reset citus.log_remote_commands; drop function round_to_nearest_ten(BIGINT); +SELECT result FROM run_command_on_all_nodes('delete from pg_dist_database where databaseid in (select oid from pg_database where datname in (''test_group0'', ''test_group1'', ''test_group2''))'); + +set citus.enable_create_database_propagation to true; + drop DATABASE test_group0; drop DATABASE test_group1; drop DATABASE test_group2;