Fix occasional 073.pg_terminate_backend test failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 21 Aug 2020 23:25:52 +0000 (08:25 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 21 Aug 2020 23:25:52 +0000 (08:25 +0900)
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

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