Skip to content

Commit a43cbe0

Browse files
committed
test: alter API roles timeout
1 parent 77bb543 commit a43cbe0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

nix/tests/expected/roles.out

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,3 +521,8 @@ order by schema_order, schema_name, privilege_type, grantee, default_for;
521521
vault | USAGE | supabase_admin | supabase_admin
522522
(389 rows)
523523

524+
-- postgres can alter API roles' timeout
525+
set role postgres;
526+
alter role anon set statement_timeout = '10min';
527+
alter role anon reset statement_timeout;
528+
reset role;

nix/tests/sql/roles.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,10 @@ from (
6565
a.privilege_type in ('CREATE', 'USAGE')
6666
) sub
6767
order by schema_order, schema_name, privilege_type, grantee, default_for;
68+
69+
-- postgres can alter API roles' timeout
70+
set role postgres;
71+
alter role anon set statement_timeout = '10min';
72+
73+
alter role anon reset statement_timeout;
74+
reset role;

0 commit comments

Comments
 (0)