diff options
| author | Noah Misch <noah@leadboat.com> | 2022-03-04 18:53:13 -0800 |
|---|---|---|
| committer | Noah Misch <noah@leadboat.com> | 2022-03-04 18:53:13 -0800 |
| commit | f2698ea02ca8a56f38935d2b300ac54936712558 (patch) | |
| tree | fa031ce71f9acf7327c3898e708682838fe210a4 /src/test/perl/README | |
| parent | 9240589798e02705dbe3e86549d064988c0f47d2 (diff) | |
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
Diffstat (limited to 'src/test/perl/README')
| -rw-r--r-- | src/test/perl/README | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/perl/README b/src/test/perl/README index 0511c55e9aa..4b160cce36e 100644 --- a/src/test/perl/README +++ b/src/test/perl/README @@ -23,6 +23,12 @@ tmp_check/log/ to get more info. Files named 'regress_log_XXX' are log output from the perl test scripts themselves, and should be examined first. Other files are postmaster logs, and may be helpful as additional data. +The tests default to a timeout of 180 seconds for many individual operations. +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. + Data directories will also be left behind for analysis when a test fails; they are named according to the test filename. But if the environment variable PG_TEST_NOCLEAN is set, data directories will be retained |
