mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
17039394d3
commit
54eaae2d26
1 file changed
+2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user