From c99c67fc43f8659517310c62e8a2637d56d0e449 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Fri, 1 Jul 2022 18:27:50 -0700 Subject: Replace PGISOLATIONTIMEOUT with 2 * PG_TEST_TIMEOUT_DEFAULT. Now that the more-generic variable exists, use it. Discussion: https://postgr.es/m/20220219024136.GA3670392@rfd.leadboat.com --- src/test/isolation/isolationtester.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/test/isolation/isolationtester.c') diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 12179f2514..095db8f35c 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -46,7 +46,7 @@ static int nconns = 0; static bool any_new_notice = false; /* Maximum time to wait before giving up on a step (in usec) */ -static int64 max_step_wait = 300 * USECS_PER_SEC; +static int64 max_step_wait = 360 * USECS_PER_SEC; static void check_testspec(TestSpec *testspec); @@ -128,12 +128,12 @@ main(int argc, char **argv) conninfo = "dbname = postgres"; /* - * If PGISOLATIONTIMEOUT is set in the environment, adopt its value (given - * in seconds) as the max time to wait for any one step to complete. + * If PG_TEST_TIMEOUT_DEFAULT is set, adopt its value (given in seconds) + * as half the max time to wait for any one step to complete. */ - env_wait = getenv("PGISOLATIONTIMEOUT"); + env_wait = getenv("PG_TEST_TIMEOUT_DEFAULT"); if (env_wait != NULL) - max_step_wait = ((int64) atoi(env_wait)) * USECS_PER_SEC; + max_step_wait = 2 * ((int64) atoi(env_wait)) * USECS_PER_SEC; /* Read the test spec from stdin */ spec_yyparse(); -- cgit v1.2.1