Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

tests: a reset is the closed connection test_request_read_deadline waits for

JustVugga4f57e0e9e84
diff --git a/c/tests/test_request_read_deadline.py b/c/tests/test_request_read_deadline.py
index 392d5ed3..f25ed929 100644
--- a/c/tests/test_request_read_deadline.py
+++ b/c/tests/test_request_read_deadline.py
@@ -92,7 +92,14 @@ class RequestReadDeadlineTest(unittest.TestCase):
writer.start()
try:
started = time.monotonic()
- self.assertEqual(client.recv(65536), b"")
+ try:
+ data = client.recv(65536)
+ except ConnectionResetError:
+ # the server closed with a dripped byte still unread: the
+ # kernel resets instead of a clean close (seen on macOS);
+ # either way nothing was answered
+ data = b""
+ self.assertEqual(data, b"")
self.assertLess(time.monotonic() - started, 0.8)
finally:
stopped.set()