[XPU][CI] Fix test_audio_in_video flake by using module-scoped server fixture (#44146)

Signed-off-by: Chaojun Zhang <chaojun.zhang@intel.com>
This commit is contained in:
Chaojun Zhang
2026-06-01 11:21:36 +00:00
committed by GitHub
parent 8796838910
commit bd0aecdc08
@@ -14,8 +14,12 @@ from tests.utils import ROCM_EXTRA_ARGS, RemoteOpenAIServer
MODEL_NAME = "Qwen/Qwen2.5-Omni-3B"
@pytest.fixture
@pytest.fixture(scope="module")
def server():
# Use module scope so the server is started once and shared across all
# tests in this file. Starting a new vLLM server per test on XPU can
# cause the second server startup to hang silently and exceed the
# wait-for-server timeout, resulting in RuntimeError.
args = [
"--max-model-len",
"16384",