Wait for subscription to sync in t/031_column_list.sql
authorTomas Vondra <tomas.vondra@postgresql.org>
Sat, 26 Mar 2022 23:11:38 +0000 (00:11 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sat, 26 Mar 2022 23:11:38 +0000 (00:11 +0100)
commit404f49338fef32150f930ddfa8ae0411b5e35121
tree9d48da699abd5cb2fb1ca1c4d11ccd9f572d0510
parent4a7e964fc67a541b6ea1b72729ad3f8e632d003c
Wait for subscription to sync in t/031_column_list.sql

One of the TAP tests added in 923def9a53 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
src/test/subscription/t/031_column_list.pl