]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts.
authorNoah Misch <noah@leadboat.com>
Sat, 5 Mar 2022 02:53:13 +0000 (18:53 -0800)
committerNoah Misch <noah@leadboat.com>
Sat, 5 Mar 2022 02:53:17 +0000 (18:53 -0800)
commitf60bb3e0a9044058a3df1d75bb900e77e51ad4ed
tree196097354019cb7962f42acfda8f6d63cfa8ca6c
parenta008c03dd722f3a9ea44b13ca2cc6066fd90ddc1
Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts.

Slow hosts may avoid load-induced, spurious failures by setting
environment variable PG_TEST_TIMEOUT_DEFAULT to some number of seconds
greater than 180.  Developers may see faster failures by setting that
environment variable to some lesser number of seconds.  In tests, write
$PostgreSQL::Test::Utils::timeout_default wherever the convention has
been to write 180.  This change raises the default for some briefer
timeouts.  Back-patch to v10 (all supported versions).

Discussion: https://postgr.es/m/20220218052842.GA3627003@rfd.leadboat.com
18 files changed:
contrib/amcheck/t/002_cic.pl
contrib/amcheck/t/003_cic_2pc.pl
src/bin/pg_ctl/t/004_logrotate.pl
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/psql/t/010_tab_completion.pl
src/bin/scripts/t/080_pg_isready.pl
src/test/perl/PostgresNode.pm
src/test/perl/TestLib.pm
src/test/recovery/t/003_recovery_targets.pl
src/test/recovery/t/006_logical_decoding.pl
src/test/recovery/t/010_logical_decoding_timelines.pl
src/test/recovery/t/013_crash_restart.pl
src/test/recovery/t/017_shm.pl
src/test/recovery/t/019_replslot_limit.pl
src/test/recovery/t/021_row_visibility.pl
src/test/recovery/t/022_crash_temp_files.pl
src/test/recovery/t/024_archive_recovery.pl
src/test/subscription/t/015_stream.pl