From aafc24abfb4fcaad346f8a8e92a63e1606163323 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Mon, 17 Aug 2020 17:09:42 +0900 Subject: [PATCH] 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` -- 2.39.5