Skip to content

Commit

Permalink
Merge pull request #174 from Aleph-Alpha/increase-retries-for-tests
Browse files Browse the repository at this point in the history
Increase retries for test clients
  • Loading branch information
ahartel authored Jul 1, 2024
2 parents 29d67ec + e429b36 commit ee0ec3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def sync_client() -> Client:
return Client(
token=get_env_var("TEST_TOKEN"),
host=get_env_var("TEST_API_URL"),
total_retries=4,
# This will retry after [0.0, 0.5, 1.0, 2.0, 4.0] seconds
total_retries=5,
)


Expand All @@ -20,7 +21,8 @@ async def async_client() -> AsyncIterable[AsyncClient]:
async with AsyncClient(
token=get_env_var("TEST_TOKEN"),
host=get_env_var("TEST_API_URL"),
total_retries=4,
# This will retry after [0.0, 0.5, 1.0, 2.0, 4.0] seconds
total_retries=5,
) as client:
yield client

Expand Down

0 comments on commit ee0ec3f

Please sign in to comment.