Skip to content

Commit

Permalink
add tests for max_concurrency
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed May 16, 2023
1 parent 973018e commit 70b8d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/bento_server_http/tests/test_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def test_serve_with_timeout(bentoml_home: str):


@pytest.mark.asyncio
async def test_serve_with_max_concurrency(bentoml_home: str):
server = bentoml.HTTPServer("service.py:svc", port=12350)
async def test_serve_with_api_max_concurrency(bentoml_home: str):
server = bentoml.HTTPServer("service.py:svc", port=12350, api_workers=1)
config_file = os.path.abspath("configs/timeout.yml")
env = os.environ.copy()
env.update(BENTOML_CONFIG=config_file)
Expand Down

0 comments on commit 70b8d5b

Please sign in to comment.