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

Noah Misch <noah@leadboat.com>

Commit: d60cfb6bf2b4812e97271e7b5ba3ad4713406b9d
Author: Noah Misch <noah@leadboat.com>
Date: 2020-04-14T01:47:28Z
Releases: 13.0
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