Skip to content

[BUG] The fallback test only validates that the fallback URL is reached #88

@GingerGraham

Description

@GingerGraham

The fallback test only validates that the fallback URL is reached, but doesn't verify the specific retry attempt count. Since wget now has 4 retry attempts while curl has 3, the test mock that succeeds on attempt 3 (MOCK_CURL_CALLS > 2 or MOCK_WGET_CALLS > 2) will succeed on wget's IPv4 fallback attempt rather than testing the final default-settings fallback attempt.

Consider either:

  1. Adjusting the test to fail the first 3 attempts (≤3 instead of ≤2) to properly test wget's 4th and final retry, OR
  2. Documenting that this test validates fallback behavior but not the complete retry sequence

This would ensure the test thoroughly validates the retry logic for both tools.

Originally posted by @Copilot in #87 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions