Don't rely on hardcoded URL

This commit is contained in:
Reinier Criel 2026-03-25 13:16:42 -07:00
parent de33ceab41
commit 9f3cd1b4da

View file

@ -6,7 +6,6 @@ import { unlinkSync, writeFileSync } from "node:fs";
import { createHash } from "node:crypto"; import { createHash } from "node:crypto";
import { import {
DOWNLOAD_URLS, DOWNLOAD_URLS,
getAgentDownloadUrl,
verifyChecksum, verifyChecksum,
} from "./downloadAgent.js"; } from "./downloadAgent.js";
@ -35,13 +34,6 @@ describe("downloadAgent", () => {
} }
} }
it("builds agent download URLs from the current version", () => {
assert.equal(
getAgentDownloadUrl("SafeChainUltimate.pkg"),
"https://github.com/AikidoSec/safechain-internals/releases/download/v1.0.0/SafeChainUltimate.pkg",
);
});
it("verifies checksum for a local file", async () => { it("verifies checksum for a local file", async () => {
const destPath = join(tmpdir(), `safe-chain-test-${Date.now()}`); const destPath = join(tmpdir(), `safe-chain-test-${Date.now()}`);
tempFiles.push(destPath); tempFiles.push(destPath);