Fix recovery_min_apply_delay test
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 31 Mar 2016 18:41:18 +0000 (15:41 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 31 Mar 2016 19:06:32 +0000 (16:06 -0300)
commit61608d38361f911a741d4a7df63afe3c7221437e
tree04aa71c9c48cf3cdac54d26b0418bb68202b2f23
parentf9aefcb91fc1f73fc43e384f660c120e515af931
Fix recovery_min_apply_delay test

Previously this test was relying too much on WAL replay to occur in the
exact configured interval, which was unreliable on slow or overly busy
servers.  Use a custom loop instead of poll_query_until, which is
hopefully more reliable.

Per continued failures on buildfarm member hamster (which is probably
the only one running this test suite)

Author: Michaël Paquier
src/test/recovery/t/005_replay_delay.pl