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

Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI #1667

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

sikehish
Copy link
Contributor

Summary

Increased timeouts in the Test_Mock_Called_blocks test to improve stability and reduce flakiness in CI environments.

Changes

  • Modified the timeout in the select block from 1ms to 10ms to allow more time before checking for the channel.
  • Adjusted the After clause in the mocked service's asyncCall from 2ms to 20ms to ensure sufficient time for the asynchronous operation to complete.

Motivation

The changes were necessary to address intermittent test failures caused by tight timing constraints in low-powered CI environments. By increasing the timeouts, we aim to enhance the reliability of our tests, ensuring they pass consistently across different execution environments.

Related issues

Closes #1666

Copy link
Collaborator

@brackendawson brackendawson left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for picking this up.

@brackendawson brackendawson merged commit 07bac60 into stretchr:master Oct 28, 2024
8 checks passed
@stretchr stretchr deleted a comment from Busterkinng88 Oct 28, 2024
@sikehish
Copy link
Contributor Author

LGTM, thanks for picking this up.

Thanks for the oppurtunity:) Lmk if you'd want me to work on any other issue

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.

Flaking test: Test_Mock_Called_blocks
2 participants