pgpool2.git / summary / log / commit / refs

commit    79d31a74b22e543618ee2a2bef4b72203c63ca7a
Author:   Tatsuo Ishii <ishii@sraoss.co.jp>
Date:     Fri Jan 10 05:50:38 2020 +0000

    Attempt to fix 001.load_balance test failure.
    
    It is likely that sleep time after reload was not enough. Change them
    from 1 second to 10 seconds.


src/test/regression/tests/001.load_balance/test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/regression/tests/001.load_balance/test.sh b/src/test/regression/tests/001.load_balance/test.sh index 52e138dc3..cfc7eda20 100755 --- a/src/test/regression/tests/001.load_balance/test.sh +++ b/src/test/regression/tests/001.load_balance/test.sh @@ -6,6 +6,9 @@ source $TESTLIBS TESTDIR=testdir PSQL=$PGBIN/psql +# sleep time after reload in seconds +st=10 + for mode in s r do rm -fr $TESTDIR @@ -61,7 +64,7 @@ EOF echo "black_function_list = ''" >> etc/pgpool.conf ./pgpool_reload - sleep 1 + sleep $t $PSQL test <<EOF SELECT f1(1); -- this does load balance @@ -128,7 +131,7 @@ EOF echo "log_min_messages = debug1" >> etc/pgpool.conf ./startall - sleep 10 + sleep $st $PSQL test <<EOF SELECT 3333; @@ -176,7 +179,7 @@ EOF echo "black_function_list = 'f1'" >> etc/pgpool.conf echo "white_function_list = ''" >> etc/pgpool.conf ./pgpool_reload - sleep 1 + sleep $st $PSQL test <<EOF SELECT f1(2); -- this should be sent to all the nodes EOF [parent: 1062b805c982]