Skip to content

Commit

Permalink
Update common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WieslerAA authored Sep 25, 2024
1 parent 042ae73 commit 5b70c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def sync_client() -> Client:
token=get_env_var("TEST_TOKEN"),
host=get_env_var("TEST_API_URL"),
# This will retry after [0.0, 0.25, 0.5, 1.0, 2.0] seconds
total_retries=os.environ.get("TEST_API_RETRIES", 5),
total_retries=int(os.environ.get("TEST_API_RETRIES", "5")),
)


Expand All @@ -22,7 +22,7 @@ async def async_client() -> AsyncIterable[AsyncClient]:
token=get_env_var("TEST_TOKEN"),
host=get_env_var("TEST_API_URL"),
# This will retry after [0.0, 0.25, 0.5, 1.0, 2.0] seconds
total_retries=os.environ.get("TEST_API_RETRIES", 5),
total_retries=int(os.environ.get("TEST_API_RETRIES", "5")),
) as client:
yield client

Expand Down

0 comments on commit 5b70c26

Please sign in to comment.