summaryrefslogtreecommitdiff
path: root/src/test/isolation/isolationtester.c
diff options
context:
space:
mode:
authorNoah Misch2022-07-02 01:27:50 +0000
committerNoah Misch2022-07-02 01:27:50 +0000
commitc99c67fc43f8659517310c62e8a2637d56d0e449 (patch)
tree2766c91317762538ab6facd0be43128e53b4680a /src/test/isolation/isolationtester.c
parent4f4c72c2dc06e944950305b0c1f48071ff49e263 (diff)
Replace PGISOLATIONTIMEOUT with 2 * PG_TEST_TIMEOUT_DEFAULT.
Now that the more-generic variable exists, use it. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/test/isolation/isolationtester.c')
-rw-r--r--src/test/isolation/isolationtester.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c
index 12179f25146..095db8f35c1 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();