From 46a2c786c2ad1ce6bf6408664292b2d56baa3ce2 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sat, 22 Aug 2020 08:25:52 +0900 Subject: [PATCH] Fix occasional 073.pg_terminate_backend test failure. The test occasionally fails with native replication mode. Let the sleep before checking connection count a little bit longer to ensure that the count is properly collected. Also emit timestamp of the counting so that it actually should collect proper data. --- src/test/regression/tests/073.pg_terminate_backend/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 01083bd02..ae7d44083 100755 --- a/src/test/regression/tests/073.pg_terminate_backend/test.sh +++ b/src/test/regression/tests/073.pg_terminate_backend/test.sh @@ -53,11 +53,12 @@ do exit 1 fi - sleep 5 + sleep 10 COUNT_UP=`grep "connection_count_up" log/pgpool.log |wc -l` COUNT_DOWN=`grep "connection_count_down" log/pgpool.log |wc -l` + date echo "count_up: ${COUNT_UP}" echo "count_down: ${COUNT_DOWN}" if [ ${COUNT_UP} != ${COUNT_DOWN} ];then -- 2.39.5