Fix occasional regression test 018.detach_primary error.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 28 May 2021 07:47:45 +0000 (16:47 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 28 May 2021 07:47:45 +0000 (16:47 +0900)
commit1a7aa30c586b9a6c8bae850c745bff81475eb1e5
tree5ff457449abb675e87b3b157b60f31aadd88fbe3
parent2623552275aaf77fea749515ea36b21a8b253ea6
Fix occasional regression test 018.detach_primary error.

According to the buildfarm log, the test failed at after this:
with this:
$PGPOOL_INSTALL_DIR/bin/pcp_watchdog_info -v -w -p $PCP_PORT
error message was:
ERROR: connection to socket "/tmp/.s.PGSQL.50001" failed with error "No such file or directory"
This suggests that pcp_watchdog_info fails because pcp server has not started yet.

To fix this add wait_for_pgpool_startup before pcp_watchdog_info.
src/test/regression/tests/018.detach_primary/test.sh