Add a wait_for_catchup() before immediate stop of a test master.

Noah Misch <noah@leadboat.com>

Commit: 30afff385dd292c0e057f837838f063ea16ebef8
Author: Noah Misch <noah@leadboat.com>
Date: 2020-04-14T01:47:32Z
Releases: 12.3
Add a wait_for_catchup() before immediate stop of a test master.

Per buildfarm member hoverfly, a slow walsender could make the test
fail.  Back-patch to v10, where the test was introduced.

Discussion: https://postgr.es/m/20200414013849.GA886648@rfd.leadboat.com

Files

Discussion