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)
commit6ffaf75a80018d8cea018635f0740b35eb3bd104
treedef7bcc57bba095bf26aeac8f129e5074b634ed2
parent084318c33a1f8aeebe492812bd1b2ed0dbafe645
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