From 890429e7fc136094d1abf047957e42a8e6593fbc Mon Sep 17 00:00:00 2001 From: gurkanindibay Date: Thu, 1 Feb 2024 13:56:32 +0300 Subject: [PATCH] Fixes non-distributed test error --- src/test/regress/expected/create_role_propagation.out | 7 +++---- src/test/regress/sql/create_role_propagation.sql | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/test/regress/expected/create_role_propagation.out b/src/test/regress/expected/create_role_propagation.out index 48310bdc3..e542da451 100644 --- a/src/test/regress/expected/create_role_propagation.out +++ b/src/test/regress/expected/create_role_propagation.out @@ -224,7 +224,6 @@ SET citus.enable_create_role_propagation TO ON; SET ROLE dist_role_1; GRANT non_dist_role_1 TO non_dist_role_2; SET citus.enable_create_role_propagation TO OFF; -SET ROLE non_dist_role_1; GRANT dist_role_1 TO dist_role_2; RESET ROLE; SET citus.enable_create_role_propagation TO ON; @@ -274,10 +273,10 @@ SELECT rolname FROM pg_authid WHERE rolname LIKE '%dist\_%' ORDER BY 1; \c - - - :worker_2_port SELECT roleid::regrole::text AS role, member::regrole::text, grantor::regrole::text, admin_option FROM pg_auth_members WHERE roleid::regrole::text LIKE '%dist\_%' ORDER BY 1, 2; - role | member | grantor | admin_option + role | member | grantor | admin_option --------------------------------------------------------------------- - dist_role_1 | dist_role_2 | postgres | f - non_dist_role_4 | dist_role_4 | postgres | f + dist_role_1 | dist_role_2 | dist_role_1 | f + non_dist_role_4 | dist_role_4 | postgres | f (2 rows) SELECT rolname FROM pg_authid WHERE rolname LIKE '%dist\_%' ORDER BY 1; diff --git a/src/test/regress/sql/create_role_propagation.sql b/src/test/regress/sql/create_role_propagation.sql index fa32cf2d2..8b09a9611 100644 --- a/src/test/regress/sql/create_role_propagation.sql +++ b/src/test/regress/sql/create_role_propagation.sql @@ -99,8 +99,6 @@ GRANT non_dist_role_1 TO non_dist_role_2; SET citus.enable_create_role_propagation TO OFF; -SET ROLE non_dist_role_1; - GRANT dist_role_1 TO dist_role_2; RESET ROLE;