tests: the OCR client-gone ways are said and not counted

CLIENT GONE during ocr and CLIENT GONE during ocr stream are not in GAVE_UP_OUTCOMES:
a document is no prompt the guard fingerprints, so the request is ended at the lane
and not counted as a prompt left without an answer, like /v1/embeddings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-12-04 00:00:19 +01:00
1 parent ae64939b9d
commit eed9e1a803
1 file changed
+4 -2
+4 -2
View File
@@ -201,11 +201,13 @@ class OnlyAClientThatLeftBeforeAnyAnswerCounts(unittest.TestCase):
# v6.50: "CLIENT GONE during pair" is a client that left a request this box sent to its peer
# (role 10). Not counted here: the request went on before its prompt was fingerprinted, and the
# peer's own proxy, which computed the prompt, counts its caller leaving it. v6.66: nor is "CLIENT GONE during
# embeddings", a request of /v1/embeddings, which has no prompt: it is ended at its lane
# embeddings", a request of /v1/embeddings, which has no prompt: it is ended at its lane. v6.69: nor are
# "CLIENT GONE during ocr" and "... during ocr stream", a request of /v1/ocr, whose document is no prompt
# the guard fingerprints: it is ended at the lane
self.assertEqual(written, {"CLIENT GONE before its body", "CLIENT GONE during hold", "CLIENT GONE during keepalive",
"CLIENT GONE before the engine answered", "CLIENT GONE during non-sse wait",
"CLIENT GONE mid-systemone", "CLIENT GONE on write", "CLIENT GONE during pair",
"CLIENT GONE during embeddings"},
"CLIENT GONE during embeddings", "CLIENT GONE during ocr", "CLIENT GONE during ocr stream"},
"a new way: say here whether it is a client that left before any answer")
counted = {o for o in written if self.gave_up(o)}
self.assertEqual(counted, {"CLIENT GONE during keepalive", "CLIENT GONE before the engine answered",