[CI/Build][Bugfix] Fix deadlock on v1 engine test CI (#19872)

Signed-off-by: Isotr0py <2037008807@qq.com>
This commit is contained in:
Isotr0py 2025-06-20 09:51:07 +08:00 committed by GitHub
parent 10d82f9ac5
commit ee9a1531aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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