Skip to content
Snippets Groups Projects
Commit aa988457 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Fix subscription test

After altering a subscription, we should wait until the updated table
sync data has been fetched by the subscriber.
parent f77be47d
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,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.)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment