From 7d8db85942194fc7576d58beb7a4dc65e415a56b Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Thu, 19 Dec 2024 13:15:11 +0100 Subject: tests: use cached releases endpoint to prevent ratelimits --- tests/download_deps.ts | 8 +++++++- tests/utils.ts | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/download_deps.ts b/tests/download_deps.ts index 097a551..808640e 100644 --- a/tests/download_deps.ts +++ b/tests/download_deps.ts @@ -224,6 +224,12 @@ if (import.meta.main) { ]; for (const target of supportedTargets) { - await downloadFiles("./download_mirror", target, moneroCliInfo, wowneroCliInfo, ...Object.values(dylibInfos).flat()); + await downloadFiles( + "./download_mirror", + target, + moneroCliInfo, + wowneroCliInfo, + ...Object.values(dylibInfos).flat(), + ); } } diff --git a/tests/utils.ts b/tests/utils.ts index ebf4e8b..80940ef 100755 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -146,9 +146,7 @@ export async function createWalletViaCli( export type MoneroCVersion = "next" | (string & {}); export async function getMoneroCTags(): Promise { - const response = await fetch( - "https://api.github.com/repos/MrCyjanek/monero_c/releases", - ); + const response = await fetch("https://static.mrcyjanek.net/monero_c/release.php"); if (!response.ok) { throw new Error(`Could not receive monero_c release tags: ${await response.text()}`); -- cgit v1.2.3