From 7cd68a0c278517ad6d067012cbe814150b028bec Mon Sep 17 00:00:00 2001 From: Dmitry Rodionov Date: Fri, 5 Aug 2022 13:08:01 +0300 Subject: [PATCH] increase timeout to pass test with real s3 --- test_runner/batch_others/test_remote_storage.py | 2 +- test_runner/batch_others/test_wal_acceptor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_runner/batch_others/test_remote_storage.py b/test_runner/batch_others/test_remote_storage.py index 72963ffe21..ca46010dca 100644 --- a/test_runner/batch_others/test_remote_storage.py +++ b/test_runner/batch_others/test_remote_storage.py @@ -110,7 +110,7 @@ def test_remote_storage_backup_and_restore( client.tenant_attach(UUID(tenant_id)) log.info("waiting for timeline redownload") - wait_until(number_of_iterations=10, + wait_until(number_of_iterations=20, interval=1, func=lambda: assert_timeline_local(client, UUID(tenant_id), UUID(timeline_id))) diff --git a/test_runner/batch_others/test_wal_acceptor.py b/test_runner/batch_others/test_wal_acceptor.py index 6544681bb0..f7aeb0abeb 100644 --- a/test_runner/batch_others/test_wal_acceptor.py +++ b/test_runner/batch_others/test_wal_acceptor.py @@ -350,7 +350,7 @@ def wait_segment_offload(tenant_id, timeline_id, live_sk, seg_end): if lsn_from_hex(tli_status.backup_lsn) >= lsn_from_hex(seg_end): break elapsed = time.time() - started_at - if elapsed > 20: + if elapsed > 30: raise RuntimeError( f"timed out waiting {elapsed:.0f}s for segment ending at {seg_end} get offloaded") time.sleep(0.5)