Skip to content

Commit 806f9dc

Browse files
committed
Fix subscription test
After altering a subscription, we should wait until the updated table sync data has been fetched by the subscriber.
1 parent 2e00d59 commit 806f9dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/subscription/t/008_diff_schema.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ sub wait_for_caught_up
102102
$node_subscriber->safe_psql('postgres',
103103
"ALTER SUBSCRIPTION tap_sub REFRESH PUBLICATION");
104104

105+
$node_subscriber->poll_query_until('postgres', $synced_query)
106+
or die "Timed out while waiting for subscriber to synchronize data";
107+
105108
# Add replica identity column. (The serial is not necessary, but it's
106109
# a convenient way to get a default on the new column so that rows
107110
# from the publisher that don't have the column yet can be inserted.)

0 commit comments

Comments
 (0)