From 8954ab5e2eb87a84ad2e30a0baffbdd61439d738 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Thu, 9 Oct 2025 14:53:42 -0700 Subject: [PATCH] test: update test_replay_missing_recording to match new error message --- tests/unit/distribution/test_api_recordings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/distribution/test_api_recordings.py b/tests/unit/distribution/test_api_recordings.py index 2208ac506..2b7ce5c4e 100644 --- a/tests/unit/distribution/test_api_recordings.py +++ b/tests/unit/distribution/test_api_recordings.py @@ -261,7 +261,7 @@ class TestInferenceRecording: with api_recording(mode=APIRecordingMode.REPLAY, storage_dir=str(temp_storage_dir)): client = AsyncOpenAI(base_url="http://localhost:11434/v1", api_key="test") - with pytest.raises(RuntimeError, match="No recorded response found"): + with pytest.raises(RuntimeError, match="Recording not found"): await client.chat.completions.create( model="llama3.2:3b", messages=[{"role": "user", "content": "This was never recorded"}] )