Fix recovery_min_apply_delay test

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 61608d38361f911a741d4a7df63afe3c7221437e
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2016-03-31T19:06:32Z
Releases: 9.6.0
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

Files

PathChange+/−
src/test/recovery/t/005_replay_delay.pl modified +37 −19