Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
test(node-services): occupy the document port on the runtime's own host
shoudi zhengea2326bd30eb
diff --git a/apps/node-services/tests/document/main.test.ts b/apps/node-services/tests/document/main.test.tsindex 566a1f4d..d2d08696 100644--- a/apps/node-services/tests/document/main.test.ts+++ b/apps/node-services/tests/document/main.test.ts@@ -36,10 +36,10 @@ function testLogger() {return { logger, log };}-// The Document Runtime binds every interface, so only a wildcard listener-// makes its port busy.+// The Document Runtime binds its configured host, so the blocker holds that+// exact address: macOS lets a specific bind share a port with a wildcard one.async function occupyPort(server: Server): Promise<number> {- await new Promise<void>((resolve) => server.listen(0, resolve));+ await new Promise<void>((resolve) => server.listen(0, "127.0.0.1", resolve));const address = server.address();if (address === null || typeof address === "string") {throw new Error("expected a TCP address");