Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Commit

Permalink
Increase system test backoff multiplier
Browse files Browse the repository at this point in the history
The current multiplier=1.3 setting leads to a timeout of 20s, which occurs frequently on slow CPUs.

Update the multiple to 1.4 which leads to a max timeout of ~85s.
  • Loading branch information
aris-aiven committed Nov 4, 2024
1 parent 44520ef commit df02f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/system/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def create_astacus_config(

async def wait_url_up(url: str | URL) -> None:
async with httpx.AsyncClient() as client:
async for _ in exponential_backoff(initial=0.1, multiplier=1.3, retries=20):
async for _ in exponential_backoff(initial=0.1, multiplier=1.4, retries=20):
try:
r = await client.get(url)
if not r.is_error:
Expand Down
4 changes: 3 additions & 1 deletion tests/system/test_astacus.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@

# This test is the slowest, so rather fail fast in real unittests before getting here
@pytest.mark.order("last")
def test_astacus(astacus1: TestNode, astacus2: TestNode, astacus3: TestNode, rootdir: str) -> None:
@pytest.mark.parametrize("test_index", range(30))
def test_astacus(astacus1: TestNode, astacus2: TestNode, astacus3: TestNode, rootdir: str, test_index: int) -> None:
print(f"Running test_astacus #{test_index}")
assert astacus1.root_path
assert astacus2.root_path
assert astacus3.root_path
Expand Down

0 comments on commit df02f3f

Please sign in to comment.