From 54eaae2d2698b3216bf54751ed6ed07bb61b79a4 Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Fri, 13 Nov 2026 21:33:20 +0100 Subject: [PATCH] v1.48.1: the pair test of a lane of 16 weighs the counts it sets too test_a_lane_of_16_keeps_a_conversation_5_ahead had the race the far-apart test had: a turn sent the moment the one before it answered was weighed with that one still counted, or before the five it holds were. It waits, as its neighbour now does, until this box says it runs none, then the five (until_running); 20 runs in a row in the test's process, all green. Co-Authored-By: Claude Opus 5.5 --- tests/test_proxy_pair_one_model.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_proxy_pair_one_model.py b/tests/test_proxy_pair_one_model.py index 7f79584a..b583e3ed 100644 --- a/tests/test_proxy_pair_one_model.py +++ b/tests/test_proxy_pair_one_model.py @@ -304,10 +304,12 @@ class TwoBoxesServeOneModel(PairFixture, unittest.TestCase): self.mod.unit_slots = lambda: 16 self.addCleanup(setattr, self.mod, "unit_slots", saved) a = self.turns("conv-s16", 2) + self.until_running(0) st, out, _ = self.call("/v1/chat/completions", a[0]) self.assertEqual(st, 200, out[:300]) self.assertIn(b"from spark1", out, "two idle boxes: the entry serves it, no hop") held = self.busy(self.E1, self.port1, KEY_1, "local-only", 5, 4.0) + self.until_running(5) st, out, _ = self.call("/v1/chat/completions", a[1]) self.assertEqual(st, 200, out[:300]) self.assertIn(b"from spark1", out, "5 ahead on a lane of 16 moved a conversation off a box with room to spare")