pgpool2.git / summary / log / commit / refs

commit    9cbc33ba993c68af57d8e1d519eb4b8cd95d7b47
Author:   Tatsuo Ishii <ishii@sraoss.co.jp>
Date:     Fri Jun 18 23:23:12 2021 +0000

    Fix 034.promote_node test failure.
    
    It appeared that under buildfarm environment, pcp_socketdir is set to
    /var/run/postgresql, but pcp client's socket directory are not changed
    from /tmp (it is defined at the compile time). Probably we should
    workaround this someday, but I just gives "-h localhost" parameter to
    pcp_promote_node to avoid this problem.


src/test/regression/tests/034.promote_node/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/regression/tests/034.promote_node/test.sh b/src/test/regression/tests/034.promote_node/test.sh index cac952654..547e97821 100755 --- a/src/test/regression/tests/034.promote_node/test.sh +++ b/src/test/regression/tests/034.promote_node/test.sh @@ -24,7 +24,7 @@ wait_for_pgpool_startup for i in 1 2 3 4 5 6 7 8 9 10 do - $PGPOOL_INSTALL_DIR/bin/pcp_node_info -w -p $PCP_PORT + $PGPOOL_INSTALL_DIR/bin/pcp_node_info -h localhost -w -p $PCP_PORT if [ $? = 0 ];then break; fi @@ -32,7 +32,7 @@ do done # promote node 3 -$PGPOOL_INSTALL_DIR/bin/pcp_promote_node -w -p $PCP_PORT -s 3 +$PGPOOL_INSTALL_DIR/bin/pcp_promote_node -h localhost -w -p $PCP_PORT -s 3 wait_for_pgpool_startup # check to see if alll nodes are up [parent: 01f7ceed87e1]