diff --git a/tests/test_proxy_pair.py b/tests/test_proxy_pair.py index 53cfae18..9e80a70f 100644 --- a/tests/test_proxy_pair.py +++ b/tests/test_proxy_pair.py @@ -3701,6 +3701,12 @@ class TheLaneNamesAreThoseTheUnitsServe(unittest.TestCase): # the embed lane's name is not one of the pair's: /v1/embeddings is no pair route, and a # request for it never leaves the box it reached (decision 966, any other name stays here) served -= {"pplx-embed-v1-0.6b"} + # nor is the ocr lane's: /v1/ocr is no pair route either (PAIR_ROUTES), so a request for it + # never leaves the box it reached. Its unit says its name as a placeholder, install-ocr.sh + # fills it with OCR_SERVED. + ocr_served = re.search(r'^OCR_SERVED="([^"]+)"', (REPO / "install-ocr.sh").read_text(), re.M).group(1) + served = {ocr_served if s == "__OCR_SERVED__" else s for s in served} + served -= {ocr_served} self.assertEqual(names, served, "a lane's served name and the pair's list of lane names agree")