From: Peter Eisentraut Date: Sat, 9 Nov 2019 12:19:27 +0000 (+0100) Subject: Fix subscription test X-Git-Tag: REL_13_BETA1~1202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef8fcbff56e8904ba83b2659e9d0290e6106928e;p=thirdparty%2Fpostgresql.git Fix subscription test After altering a subscription, we should wait until the updated table sync data has been fetched by the subscriber. --- diff --git a/src/test/subscription/t/008_diff_schema.pl b/src/test/subscription/t/008_diff_schema.pl index d1c8fb7061f..81520a73329 100644 --- a/src/test/subscription/t/008_diff_schema.pl +++ b/src/test/subscription/t/008_diff_schema.pl @@ -104,6 +104,9 @@ $node_subscriber->safe_psql('postgres', $node_subscriber->safe_psql('postgres', "ALTER SUBSCRIPTION tap_sub REFRESH PUBLICATION"); +$node_subscriber->poll_query_until('postgres', $synced_query) + or die "Timed out while waiting for subscriber to synchronize data"; + # Add replica identity column. (The serial is not necessary, but it's # a convenient way to get a default on the new column so that rows # from the publisher that don't have the column yet can be inserted.)