069.memory_leak_extended, 070.memory_leak_extended_memqcache and
073.pg_terminate_backend uses "sleep 1" to confirm pgpool starting up,
which makes the tests unstable because there's no guarantee that pgpool
becomes ready within 1 second. Use wait_for_pgpool_startup instead to
stabilize the tests.
# start pgpool-II
./startall
- sleep 1
+ wait_for_pgpool_startup
# initialize tables
$PGBENCH -i test
# start pgpool-II
./startall
- sleep 1
+ wait_for_pgpool_startup
# initialize tables
$PGBENCH -i test
# start pgpool-II
./startall
- sleep 1
+ wait_for_pgpool_startup
$PSQL test -p $PGPORT -c "SELECT pg_sleep(10);" &