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

Remove sleep for TestGroupEntityIndexEventHandlers unit test #6973

Conversation

antoninbas
Copy link
Contributor

I have seen the test fail in Github CI (Windows).
The 100ms sleep before verifying assertions is replaced with an assert.EventuallyWithT statement, with a tick duration of 50ms and a timeout of 1s.

@antoninbas antoninbas requested a review from tnqn February 5, 2025 19:34
@antoninbas antoninbas added area/test Issues or PRs related to unit and integration tests. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. labels Feb 5, 2025
@antoninbas antoninbas requested a review from luolanzone February 6, 2025 01:12
luolanzone
luolanzone previously approved these changes Feb 6, 2025
Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit

pkg/controller/grouping/group_entity_index_test.go Outdated Show resolved Hide resolved
I have seen the test fail in Github CI (Windows).
The 100ms sleep before verifying assertions is replaced with an
assert.EventuallyWithT statement, with a tick duration of 50ms and a
timeout of 1s.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas antoninbas force-pushed the remove-sleep-for-TestGroupEntityIndexEventHandlers-unit-test branch from e9f0a31 to 33166d9 Compare February 6, 2025 22:29
@antoninbas antoninbas requested a review from luolanzone February 6, 2025 22:29
@antoninbas antoninbas merged commit 855d29d into antrea-io:main Feb 7, 2025
51 of 60 checks passed
@antoninbas antoninbas deleted the remove-sleep-for-TestGroupEntityIndexEventHandlers-unit-test branch February 7, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test Issues or PRs related to unit and integration tests. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants