Skip to content

Commit

Permalink
Cleanup leftover replication slots in publication test
Browse files Browse the repository at this point in the history
  • Loading branch information
naisila committed Nov 17, 2023
1 parent cdd1d93 commit a20925a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/regress/expected/publication.out
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ SET client_min_messages TO ERROR;
DROP SCHEMA publication CASCADE;
DROP SCHEMA "publication-1" CASCADE;
DROP SCHEMA citus_schema_1 CASCADE;
SELECT public.wait_for_resource_cleanup();
\q
\endif
-- recreate a mixed publication
Expand Down Expand Up @@ -544,3 +545,9 @@ DROP SCHEMA publication CASCADE;
DROP SCHEMA "publication-1" CASCADE;
DROP SCHEMA citus_schema_1 CASCADE;
DROP SCHEMA publication2 CASCADE;
SELECT public.wait_for_resource_cleanup();
wait_for_resource_cleanup
---------------------------------------------------------------------

(1 row)

6 changes: 6 additions & 0 deletions src/test/regress/expected/publication_0.out
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,10 @@ SET client_min_messages TO ERROR;
DROP SCHEMA publication CASCADE;
DROP SCHEMA "publication-1" CASCADE;
DROP SCHEMA citus_schema_1 CASCADE;
SELECT public.wait_for_resource_cleanup();
wait_for_resource_cleanup
---------------------------------------------------------------------

(1 row)

\q
3 changes: 3 additions & 0 deletions src/test/regress/sql/publication.sql
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ SET client_min_messages TO ERROR;
DROP SCHEMA publication CASCADE;
DROP SCHEMA "publication-1" CASCADE;
DROP SCHEMA citus_schema_1 CASCADE;
SELECT public.wait_for_resource_cleanup();
\q
\endif

Expand Down Expand Up @@ -391,3 +392,5 @@ DROP SCHEMA publication CASCADE;
DROP SCHEMA "publication-1" CASCADE;
DROP SCHEMA citus_schema_1 CASCADE;
DROP SCHEMA publication2 CASCADE;

SELECT public.wait_for_resource_cleanup();

0 comments on commit a20925a

Please sign in to comment.