pgpool2.git / summary / log / commit / refs

commit    c9ad02632c3a8f73fbb48121f59c39d19fb7ebd8
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Thu Oct 30 15:11:11 2014 +0000

    Fix wait_for_pgpool_startup to use "postgres" database rathern than "test".
    
    The test database may or may not exist and if it does not, it will
    always retry until timeout expired (20 seconds), and regression test
    takes unnecessary long.


src/test/pgpool_setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/pgpool_setup b/src/test/pgpool_setup index 6f9c833e9..7f83f16db 100755 --- a/src/test/pgpool_setup +++ b/src/test/pgpool_setup @@ -509,8 +509,9 @@ function wait_for_pgpool_startup { while [ $timeout -gt 0 ] do - $PSQL -p $PGPOOL_PORT -c "show pool_nodes" test >/dev/null 2>&1 + $PSQL -p $PGPOOL_PORT -c "show pool_nodes" postgres >/dev/null 2>&1 if [ $? = 0 ];then +# echo "pgpool-II comes up after `expr 20 - $timeout` seconds" break; fi timeout=`expr $timeout - 1` [parent: b80749a6b07f]