Skip to content

Commit 6c4b353

Browse files
committed
fix: inject version in checksum mismatch test to avoid GitHub API rate limits
The performManagedInstall checksum mismatch test did not specify a version or fetchLatestVersion mock, causing it to call the real GitHub releases API. On CI runners with shared IPs, this hits 403 rate limits and the test fails with an unrelated error instead of reaching the checksum verification step. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent a3513f3 commit 6c4b353

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/unit/managedLifecycle.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ test("performManagedInstall persists failure on checksum mismatch", async () =>
418418
await assert.rejects(
419419
() => performManagedInstall({
420420
installRoot,
421+
version: "0.1.0",
421422
platform: "linux",
422423
arch: "x64",
423424
downloadFile: async (inputs) => {

0 commit comments

Comments
 (0)