Skip to content

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(scripts): fail the hidden-address download at once instead of waiting out curl retries

shoudi zhengf8ed512f0ca9
diff --git a/scripts/ci/desktop-release.test.ts b/scripts/ci/desktop-release.test.ts
index 09ee0a67..747262e8 100644
--- a/scripts/ci/desktop-release.test.ts
+++ b/scripts/ci/desktop-release.test.ts
@@ -262,14 +262,16 @@ describe("desktop-release.sh build", () => {
});
it("keeps the archive folder's address out of the log", () => {
+ // A missing file:// folder fails at once; an unresolvable host would wait
+ // out curl's retry backoff.
const result = run(["fetch-native", "linux-x64"], {
LINGER_NATIVE_POSTGRES_DIR: folder(),
- LINGER_NATIVE_DEPS_URL: "http://deps.invalid/private/folder",
+ LINGER_NATIVE_DEPS_URL: `file://${folder()}/private-deps-folder`,
});
expect(result.status).toBe(1);
expect(result.stderr).toContain("cannot download");
- expect(result.stdout + result.stderr).not.toContain("deps.invalid");
+ expect(result.stdout + result.stderr).not.toContain("private-deps-folder");
});
});