diff --git a/tests/models/language/pooling/test_truncation_control.py b/tests/models/language/pooling/test_truncation_control.py index d41a3379dc..50e8cdbd06 100644 --- a/tests/models/language/pooling/test_truncation_control.py +++ b/tests/models/language/pooling/test_truncation_control.py @@ -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,