Fix instability in subscription regression test.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Sep 2017 15:28:34 +0000 (11:28 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Sep 2017 15:28:34 +0000 (11:28 -0400)
commit4939488af9b86edfff9b981773cd388d361c5830
treeb2ae05f6bd5e148ff497d0213073777f19b07fe4
parent36b564c648a044e42ca461466ae14d8588e6c5e2
Fix instability in subscription regression test.

005_encoding.pl neglected to wait for the subscriber's initial
synchronization to happen.  While we have not seen this fail in
the buildfarm, it's pretty easy to demonstrate there's an issue
by hacking logicalrep_worker_launch() to fail most of the time.

Michael Paquier

Discussion: https://postgr.es/m/27032.1505749806@sss.pgh.pa.us
src/test/subscription/t/005_encoding.pl