Skip to content

Commit 6046001

Browse files
committed
Add assertion after send_prefix_cache_requests in both prefix cache tests
1 parent 694f1bb commit 6046001

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/model_serving/model_server/llmd/test_llmd_singlenode_estimated_prefix_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def test_singlenode_estimated_prefix_cache(
6565
successful = send_prefix_cache_requests(
6666
llmisvc=llmisvc, prompt=PREFIX_CACHE_PROMPT, token=llmisvc_token, count=NUM_REQUESTS
6767
)
68+
assert successful == NUM_REQUESTS, f"Expected all {NUM_REQUESTS} requests to succeed, got {successful}"
6869

6970
assert_prefix_cache_routing(
7071
prometheus=prometheus,

tests/model_serving/model_server/llmd/test_llmd_singlenode_precise_prefix_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def test_singlenode_precise_prefix_cache(
6767
successful = send_prefix_cache_requests(
6868
llmisvc=llmisvc, prompt=PREFIX_CACHE_PROMPT, token=llmisvc_token, count=NUM_REQUESTS
6969
)
70+
assert successful == NUM_REQUESTS, f"Expected all {NUM_REQUESTS} requests to succeed, got {successful}"
7071

7172
assert_prefix_cache_routing(
7273
prometheus=prometheus,

0 commit comments

Comments
 (0)