From cdfa9fe7058a77a568eb24e8469e20c96dfb5b90 Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Fri, 5 Aug 2022 19:02:16 +0300 Subject: [PATCH] avoid duplicate parameter, increase timeout --- test_runner/fixtures/neon_fixtures.py | 4 +++- test_runner/performance/test_wal_backpressure.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test_runner/fixtures/neon_fixtures.py b/test_runner/fixtures/neon_fixtures.py index 3848aee05a..3b87f290b8 100644 --- a/test_runner/fixtures/neon_fixtures.py +++ b/test_runner/fixtures/neon_fixtures.py @@ -299,7 +299,9 @@ class PgProtocol: # change it by calling "SET statement_timeout" after # connecting. options = result.get('options', '') - result['options'] = f'-cstatement_timeout=120s {options}' + if "statement_timeout" not in options: + options = f'-cstatement_timeout=120s {options}' + result['options'] = options return result # autocommit=True here by default because that's what we need most of the time diff --git a/test_runner/performance/test_wal_backpressure.py b/test_runner/performance/test_wal_backpressure.py index 61c5bea64a..bbb5ddecab 100644 --- a/test_runner/performance/test_wal_backpressure.py +++ b/test_runner/performance/test_wal_backpressure.py @@ -155,7 +155,7 @@ def start_pgbench_intensive_initialization(env: PgCompare, scale: int, done_even f'-s{scale}', '-i', '-Idtg', - env.pg.connstr(options='-cstatement_timeout=360s') + env.pg.connstr(options='-cstatement_timeout=600s') ]) done_event.set()