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
This commit is contained in:
parent
f3d06e5240
commit
b33ac1a658
@ -131,6 +131,7 @@ cmp_ok(
|
||||
'xmin on physical slot must not be lower than catalog_xmin');
|
||||
|
||||
$node_master->safe_psql('postgres', 'CHECKPOINT');
|
||||
$node_master->wait_for_catchup($node_replica, 'write');
|
||||
|
||||
# Boom, crash
|
||||
$node_master->stop('immediate');
|
||||
|
Loading…
x
Reference in New Issue
Block a user