From ee9a1531aad9bc5cb585a230b467927bfaa5fc39 Mon Sep 17 00:00:00 2001 From: Isotr0py Date: Fri, 20 Jun 2025 09:51:07 +0800 Subject: [PATCH] [CI/Build][Bugfix] Fix deadlock on v1 engine test CI (#19872) Signed-off-by: Isotr0py <2037008807@qq.com> --- tests/v1/engine/test_async_llm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/v1/engine/test_async_llm.py b/tests/v1/engine/test_async_llm.py index 33a9d672024b..e137452f2625 100644 --- a/tests/v1/engine/test_async_llm.py +++ b/tests/v1/engine/test_async_llm.py @@ -383,7 +383,8 @@ async def test_check_health(monkeypatch: pytest.MonkeyPatch): with monkeypatch.context() as m, ExitStack() as after: m.setenv("VLLM_USE_V1", "1") - engine = AsyncLLM.from_engine_args(TEXT_ENGINE_ARGS) + with set_default_torch_num_threads(1): + engine = AsyncLLM.from_engine_args(TEXT_ENGINE_ARGS) after.callback(engine.shutdown) # Test 1: Healthy engine should not raise any exception