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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy