Skip to content

Conversation

@anthonyting
Copy link
Contributor

Issue #, if available:

Description of changes:

Fix off-by-one error in wait-for-condition. Before, the attempt variable in waitStrategy would be 1 on the first attempt, then 1 again on the second attempt, and 2 on the third attempt.

We should count the current attempt in waitStrategy based on the actual attempt. The current attempt is equal to the last attempt from the API + 1, not the result directly from the API.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@anthonyting anthonyting force-pushed the fix/wait-for-condition-attempt-count branch from 37f9a90 to 21e2840 Compare December 3, 2025 01:36
@anthonyting anthonyting marked this pull request as ready for review December 3, 2025 04:30
@anthonyting anthonyting merged commit f1bde06 into main Dec 3, 2025
28 of 31 checks passed
@anthonyting anthonyting deleted the fix/wait-for-condition-attempt-count branch December 3, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants