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:
- Adjusting the test to fail the first 3 attempts (≤3 instead of ≤2) to properly test wget's 4th and final retry, OR
- 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)
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:
This would ensure the test thoroughly validates the retry logic for both tools.
Originally posted by @Copilot in #87 (comment)