From 70b8d5bce31f52f8e3f8acbc8882f467ad66bc5a Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Mon, 15 May 2023 11:51:07 +0800 Subject: [PATCH] add tests for max_concurrency Signed-off-by: Frost Ming --- tests/e2e/bento_server_http/tests/test_serve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/bento_server_http/tests/test_serve.py b/tests/e2e/bento_server_http/tests/test_serve.py index e1121f50b08..7d680ed8459 100644 --- a/tests/e2e/bento_server_http/tests/test_serve.py +++ b/tests/e2e/bento_server_http/tests/test_serve.py @@ -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)