increase timeout to pass test with real s3

This commit is contained in:
Dmitry Rodionov
2022-08-05 13:08:01 +03:00
committed by Dmitry Rodionov
parent beaa991f81
commit 7cd68a0c27
2 changed files with 2 additions and 2 deletions

View File

@@ -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)))

View File

@@ -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)