aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2025-03-07 13:09:16 -0500
committerAndres Freund <andres@anarazel.de>2025-03-07 13:09:16 -0500
commitb48832cddbf57a3428f1a553e395f1870e1b0cb5 (patch)
tree8abb4056fa801f2ea066fd051db27ecfdb5cde53 /src
parent71d1ed6fe129935ce2764c5d34924512ed046f69 (diff)
downloadpostgresql-b48832cddbf57a3428f1a553e395f1870e1b0cb5.tar.gz
postgresql-b48832cddbf57a3428f1a553e395f1870e1b0cb5.zip
tests: Don't fail due to high default timeout in postmaster/003_start_stop
Some BF animals use very high timeouts due to their slowness. Unfortunately postmaster/003_start_stop fails if a high timeout is configured, due to authentication_timeout having a fairly low max. As this test is reasonably fast, the easiest fix seems to be to cap the timeout to 600. Per buildfarm animal skink. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/ggflhkciwdyotpoie323chu2c2idpjk5qimrn462encwx2io7s@thmcxl7i6dpw
Diffstat (limited to 'src')
-rw-r--r--src/test/postmaster/t/003_start_stop.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/postmaster/t/003_start_stop.pl b/src/test/postmaster/t/003_start_stop.pl
index 036b296f72b..4dc394139d9 100644
--- a/src/test/postmaster/t/003_start_stop.pl
+++ b/src/test/postmaster/t/003_start_stop.pl
@@ -20,6 +20,10 @@ use Test::More;
# "pg_ctl stop" will error out before the authentication timeout kicks
# in and cleans up the dead-end backends.
my $authentication_timeout = $PostgreSQL::Test::Utils::timeout_default;
+
+# Don't fail due to hitting the max value allowed for authentication_timeout.
+$authentication_timeout = 600 unless $authentication_timeout < 600;
+
my $stop_timeout = $authentication_timeout / 2;
# Initialize the server with low connection limits, to test dead-end backends