Skip to content

Commit

Permalink
separate test config
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 7bd9b78 commit 9562372
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/bento_server_http/configs/max_concurrency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
api_server:
traffic:
timeout: 60
max_concurrency: 2
1 change: 0 additions & 1 deletion tests/e2e/bento_server_http/configs/timeout.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
api_server:
traffic:
timeout: 1
max_concurrency: 2
2 changes: 1 addition & 1 deletion tests/e2e/bento_server_http/tests/test_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_serve_with_timeout(bentoml_home: str):
@pytest.mark.asyncio
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")
config_file = os.path.abspath("configs/max_concurrency.yml")
env = os.environ.copy()
env.update(BENTOML_CONFIG=config_file)

Expand Down

0 comments on commit 9562372

Please sign in to comment.