Skip to content

Commit a31f73c

Browse files
committed
test: better wait strategy
1 parent e8289b4 commit a31f73c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/integration/backup_tests/test_sharding_backups.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,14 @@ async def deploy_cluster_backup_test(
333333
if deploy_s3_integrator:
334334
await ops_test.model.deploy(S3_APP_NAME, channel="edge")
335335

336-
await ops_test.model.wait_for_idle(
337-
apps=[S3_APP_NAME, config_server_name, shard_one_name, shard_two_name],
338-
idle_period=20,
339-
raise_on_blocked=False,
340-
timeout=TIMEOUT,
341-
raise_on_error=False,
342-
)
336+
async with ops_test.fast_forward("1m"):
337+
await ops_test.model.wait_for_idle(
338+
apps=[S3_APP_NAME, config_server_name, shard_one_name, shard_two_name],
339+
idle_period=30,
340+
raise_on_blocked=False,
341+
timeout=TIMEOUT,
342+
raise_on_error=False,
343+
)
343344

344345

345346
async def setup_cluster_and_s3(ops_test: OpsTest, new_names=False) -> None:

0 commit comments

Comments
 (0)