diff options
| author | Im-Beast <franik.mateusz@gmail.com> | 2024-12-19 13:15:11 +0100 |
|---|---|---|
| committer | Im-Beast <franik.mateusz@gmail.com> | 2024-12-19 13:15:11 +0100 |
| commit | 7d8db85942194fc7576d58beb7a4dc65e415a56b (patch) | |
| tree | 7f53a2ccd1de179b99b0b3bf43ee282405c80f03 /tests | |
| parent | 56f10a0d91374ea2a2739f875dbe9fb2d695a0eb (diff) | |
tests: use cached releases endpoint to prevent ratelimits
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/download_deps.ts | 8 | ||||
| -rwxr-xr-x | 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<string[]> { - 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()}`); |
