Fix 073.pg_terminate_backend test failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 17 Aug 2020 08:09:42 +0000 (17:09 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 17 Aug 2020 08:09:42 +0000 (17:09 +0900)
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

index 832f08d8750c3cb367758cf92591e323505fa11b..01083bd0286bdbeebccd5bdcf5342b2feb9bd6ad 100755 (executable)
@@ -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`