diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-11-09 13:19:27 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-11-09 16:00:34 +0100 |
commit | f967563045334c3f660805c6ad83068b5f76a00d (patch) | |
tree | bbe4734d4c552bb6c563900aa335853c589b7298 | |
parent | 4977a35ea79a4608a2617a06bb73488f199d062f (diff) | |
download | postgresql-f967563045334c3f660805c6ad83068b5f76a00d.tar.gz postgresql-f967563045334c3f660805c6ad83068b5f76a00d.zip |
Fix subscription test
After altering a subscription, we should wait until the updated table
sync data has been fetched by the subscriber.
-rw-r--r-- | src/test/subscription/t/008_diff_schema.pl | 3 |
1 files changed, 3 insertions, 0 deletions
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.) |