Skip to content

Commit

Permalink
Increase more timeouts in test
Browse files Browse the repository at this point in the history
There are more parts of add_table that wait for table resync,
adjust timeout for all of them.
  • Loading branch information
PJMODOS committed Jul 29, 2021
1 parent b15845b commit dc1964e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions expected/add_table.out
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ SELECT * FROM pglogical.replication_set_add_table('default', '"strange.schema-IS
(1 row)

\c :subscriber_dsn
SET statement_timeout = '10s';
SET statement_timeout = '20s';
SELECT pglogical.wait_for_table_sync_complete('test_subscription', 'test_publicschema');
wait_for_table_sync_complete
------------------------------
Expand Down Expand Up @@ -255,7 +255,7 @@ SELECT * FROM pglogical.alter_subscription_resynchronize_table('test_subscriptio
(1 row)

BEGIN;
SET statement_timeout = '10s';
SET statement_timeout = '20s';
SELECT pglogical.wait_for_table_sync_complete('test_subscription', 'test_publicschema');
wait_for_table_sync_complete
------------------------------
Expand Down Expand Up @@ -506,7 +506,7 @@ SELECT * FROM pglogical.alter_subscription_resynchronize_table('test_subscriptio
(1 row)

BEGIN;
SET statement_timeout = '10s';
SET statement_timeout = '20s';
SELECT pglogical.wait_for_table_sync_complete('test_subscription', 'synctest');
wait_for_table_sync_complete
------------------------------
Expand Down
6 changes: 3 additions & 3 deletions sql/add_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ SELECT * FROM pglogical.replication_set_add_table('default', '"strange.schema-IS


\c :subscriber_dsn
SET statement_timeout = '10s';
SET statement_timeout = '20s';
SELECT pglogical.wait_for_table_sync_complete('test_subscription', 'test_publicschema');
SELECT pglogical.wait_for_table_sync_complete('test_subscription', '"strange.schema-IS".test_strangeschema');
RESET statement_timeout;
Expand Down Expand Up @@ -111,7 +111,7 @@ SELECT * FROM public.test_publicschema;
SELECT * FROM pglogical.alter_subscription_resynchronize_table('test_subscription', 'test_publicschema');

BEGIN;
SET statement_timeout = '10s';
SET statement_timeout = '20s';
SELECT pglogical.wait_for_table_sync_complete('test_subscription', 'test_publicschema');
COMMIT;

Expand Down Expand Up @@ -254,7 +254,7 @@ INSERT INTO synctest VALUES (2, '2');
SELECT * FROM pglogical.alter_subscription_resynchronize_table('test_subscription', 'synctest');

BEGIN;
SET statement_timeout = '10s';
SET statement_timeout = '20s';
SELECT pglogical.wait_for_table_sync_complete('test_subscription', 'synctest');
COMMIT;

Expand Down

0 comments on commit dc1964e

Please sign in to comment.