Fix test instability
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 29 Jul 2022 10:50:47 +0000 (12:50 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 29 Jul 2022 10:50:47 +0000 (12:50 +0200)
commit7cfe688dee86c10ed2622872f5b2f8ca9b1b7c5b
tree6cd9a8b1b773d15860002bf1a3a4d10af711aa15
parent9a7e26b9c2ac7094f8a7d26cb32a8bc57d28d3f1
Fix test instability

On FreeBSD, the new test fails due to a WAL file being removed before
the standby has had the chance to copy it.  Fix by adding a replication
slot to prevent the removal until after the standby has connected.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reported-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Discussion: https://postgr.es/m/CAEze2Wj5nau_qpjbwihvmXLfkAWOZ5TKdbnqOc6nKSiRJEoPyQ@mail.gmail.com
src/test/recovery/t/033_replay_tsp_drops.pl