Skip to content

Commit

Permalink
ci: fix tests for new option parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Dec 14, 2023
1 parent cf1c8de commit 62c13c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/fal/tests/test_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def served(name: str):
op = served.options
assert fastapi_in(op), "fastapi not in served environment"
assert op.gateway["serve"], "serve not in served gateway"
assert op.gateway["max_concurrency"] == 8, "max_concurrency not in served gateway"
assert op.host["max_concurrency"] == 8, "max_concurrency not in served gateway"
assert op.host["keep_alive"] == 10, "keep_alive not in served host"
assert op.host["machine_type"] == "M", "machine_type not in served host"

Expand All @@ -524,7 +524,7 @@ def served(name: str):
op = unserved.options
assert fastapi_in(op), "fastapi MUST stay after removing serve"
assert not op.gateway["serve"], "serve STILL set in unserved gateway"
assert op.gateway["max_concurrency"] == 8, "max_concurrency not in unserved gateway"
assert op.host["max_concurrency"] == 8, "max_concurrency not in unserved gateway"
assert op.host["keep_alive"] == 10, "keep_alive not in unserved host"
assert op.host["machine_type"] == "M", "machine_type not in unserved host"

Expand All @@ -533,6 +533,6 @@ def served(name: str):
op = local.options
assert fastapi_in(op), "fastapi not in local environment"
assert op.gateway["serve"], "serve not in local gateway"
assert op.gateway["max_concurrency"] == 8, "max_concurrency not in local gateway"
assert "max_concurrency" not in op.host, "max_concurrency set in local gateway"
assert "keep_alive" not in op.host, "keep_alive set in local host"
assert "machine_type" not in op.host, "machine_type set in local host"

0 comments on commit 62c13c2

Please sign in to comment.