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:58:07 +0000 (16:58 +0900)
commitb329df12e22e8a0194e70177f8a043f554db214c
treee4dd9a16dbcccde172bdb8c960fb929932fffd89
parent160ecab746a851281b628924ce86eec5c07049f1
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