Skip to content

Commit 404f493

Browse files
committed
Wait for subscription to sync in t/031_column_list.sql
One of the TAP tests added in 923def9 did not wait after creating a subscription, and wait_for_catchup is not sufficient for this. So if the tablesync workers happen do not complete quickly enough, the test won't see the expected results. This probably explains intermittent failures on a couple buildfarm animals (komodoensis, petalura and snapper). Reported-by: Tom Lane Discussion: https://postgr.es/m/170549.1648330634@sss.pgh.pa.us
1 parent 4a7e964 commit 404f493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/subscription/t/031_column_list.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ sub wait_for_subscription_sync
722722
CREATE SUBSCRIPTION sub1 CONNECTION '$publisher_connstr' PUBLICATION pub8;
723723
));
724724

725-
$node_publisher->wait_for_catchup('sub1');
725+
wait_for_subscription_sync($node_subscriber);
726726

727727
$node_publisher->safe_psql('postgres', qq(
728728
INSERT INTO test_part_c VALUES (3, 7, 8);

0 commit comments

Comments
 (0)