Skip to content

Commit

Permalink
increase maximum try for server to be up
Browse files Browse the repository at this point in the history
  • Loading branch information
mde-pach committed Mar 3, 2024
1 parent 24df180 commit 4feacc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/e2e/test_cli/test_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ async def test_blitz_app_urls(blitz_app: None) -> None:
assert response.status_code == 200
response = await client.get("http://localhost:8100/api/docs")
assert response.status_code == 200
assert False


@pytest.mark.asyncio
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/blitz.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def blitz_app(cli: Cli, blitz_app_path: Path) -> Iterator[None]:
proc.start()
with httpx.Client() as client:
maximum_try = 0
while maximum_try < 10:
while maximum_try < 20:
maximum_try += 1
try:
response = client.get("http://localhost:8100/api/docs")
Expand Down

0 comments on commit 4feacc0

Please sign in to comment.