Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts.
authorNoah Misch <[email protected]>
Sat, 5 Mar 2022 02:53:13 +0000 (18:53 -0800)
committerNoah Misch <[email protected]>
Sat, 5 Mar 2022 02:53:17 +0000 (18:53 -0800)
commit7f2e1befc039029ce5be36088f6872ad393d007c
tree726868b0193f75553dd1c35f80451c257ba596d8
parent18c04d1574568fd68e4f498483f3b10b11018c68
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[email protected]
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pgbench/t/022_cic.pl
src/bin/pgbench/t/023_cic_2pc.pl
src/bin/scripts/t/080_pg_isready.pl
src/test/perl/PostgresNode.pm
src/test/perl/TestLib.pm
src/test/recovery/t/006_logical_decoding.pl
src/test/recovery/t/010_logical_decoding_timelines.pl
src/test/recovery/t/017_shm.pl