pgpool2.git / summary / log / commit / refs

commit    aafc24abfb4fcaad346f8a8e92a63e1606163323
Author:   Tatsuo Ishii <ishii@sraoss.co.jp>
Date:     Mon Aug 17 08:09:42 2020 +0000

    Fix 073.pg_terminate_backend test failure.
    
    The test failed because before pg_sleep(10) finished, pgpool shut down.
    As a result, connection counting did not have a chance to count down.
    Adding proper sleep in the script should fix the problem.
    
    Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2020-August/003766.html


src/test/regression/tests/073.pg_terminate_backend/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/regression/tests/073.pg_terminate_backend/test.sh b/src/test/regression/tests/073.pg_terminate_backend/test.sh index 832f08d87..01083bd02 100755 --- a/src/test/regression/tests/073.pg_terminate_backend/test.sh +++ b/src/test/regression/tests/073.pg_terminate_backend/test.sh @@ -53,6 +53,8 @@ do exit 1 fi + sleep 5 + COUNT_UP=`grep "connection_count_up" log/pgpool.log |wc -l` COUNT_DOWN=`grep "connection_count_down" log/pgpool.log |wc -l` [parent: 283517759bd5]