Minor tuning of tests (#2201)

- Reduce verbosity for unit tests
- Refactor GH actions config and try again macos behave tests
This commit is contained in:
Alexander Kukushkin
2022-02-10 15:38:16 +01:00
committed by GitHub
parent afab392ead
commit d3e3b4e16f
6 changed files with 23 additions and 44 deletions
+2
View File
@@ -76,6 +76,8 @@ def do_request(context, request_method, url, data):
data = data and json.loads(data)
try:
r = request_executor.request(request_method, url, data)
if request_method == 'PATCH' and r.status == 409:
r = request_executor.request(request_method, url, data)
except Exception:
context.status_code = context.response = None
else:
+1 -1
View File
@@ -57,7 +57,7 @@ def start_patroni_standby_cluster(context, name, cluster_name, name2):
@step('{pg_name1:w} is replicating from {pg_name2:w} after {timeout:d} seconds')
def check_replication_status(context, pg_name1, pg_name2, timeout):
bound_time = time.time() + timeout
bound_time = time.time() + timeout * context.timeout_multiplier
while time.time() < bound_time:
cur = context.pctl.query(