Test: tweak timeout in 034 and 075 tests.
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 29 Aug 2025 06:48:57 +0000 (15:48 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 29 Aug 2025 06:48:57 +0000 (15:48 +0900)
034.promote_node and 075.detach_primary_left_down_node set the timeout
60 seconds for finishing follow primary script.  It turns out that
these timeout values are not long enough, and sometimes caused false
errors. So make them from 60 seconds to 120 seconds.

Backpath-through: v4.2

src/test/regression/tests/034.promote_node/test.sh
src/test/regression/tests/075.detach_primary_left_down_node/test.sh

index 547e9782155c18fd28efd73e2e412aedd0dcc8bb..07f35e46b8f25b114c0864157cd5e13909ec14f5 100755 (executable)
@@ -38,7 +38,7 @@ wait_for_pgpool_startup
 # check to see if alll nodes are up
 echo -n "starting to check follow primary results: "
 date
-cnt=60
+cnt=120
 while [ $cnt -gt 0 ]
 do
     # check to see if primary is now node 3
index 05fdc5317e7c0ae579d465daf34bf31d842b69f0..30acec9cb8cfa839cfa146cabe36f7f475341a6e 100755 (executable)
@@ -30,7 +30,7 @@ wait_for_pgpool_startup
 # check to see if alll nodes are up
 echo -n "starting to check follow primary results: "
 date
-cnt=60
+cnt=120
 while [ $cnt -gt 0 ]
 do
     $PGBIN/psql -c "show pool_nodes" test 2>&1|grep -E 'down|error'