Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix flaky foreach test #2717

Merged
merged 1 commit into from
Feb 13, 2025
Merged

fix flaky foreach test #2717

merged 1 commit into from
Feb 13, 2025

Conversation

wildum
Copy link
Contributor

@wildum wildum commented Feb 13, 2025

in the EventuallyWithT. the assert.CollectT should be used to collect the assertion.
When the *testing.T is used, it will fail the test on the first try instead of retrying till the condition is true or the timeout triggers. The test was flaky because sometimes it had enough time to get the right data on the first check but sometimes it didnt

@wildum wildum requested a review from a team as a code owner February 13, 2025 14:05
@wildum wildum merged commit cd90913 into main Feb 13, 2025
30 checks passed
@wildum wildum deleted the fix-foreach-test branch February 13, 2025 14:26
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