[CI][Test] Fix pooling truncation test after VLLMError hierarchy change (#50241)

Signed-off-by: Stefan Koncarevic <stefan.koncarevic@amd.com>
This commit is contained in:
stefankoncarevic
2026-07-29 12:15:56 +00:00
committed by GitHub
parent 72297d859b
commit 625871b52c
@@ -2,6 +2,8 @@
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import pytest
from vllm.exceptions import VLLMValidationError
MODEL_NAME = "sentence-transformers/all-MiniLM-L12-v2"
max_model_len = 128
@@ -60,7 +62,7 @@ def test_bigger_truncation_size(
truncate_prompt_tokens = max_model_len + 1
with (
pytest.raises(ValueError),
pytest.raises(VLLMValidationError),
vllm_runner(
model_name, runner="pooling", max_model_len=max_model_len
) as vllm_model,