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 features BackoffManager Unit Tests in Resource-Constrained Environments #494

Merged

Conversation

arturobernalg
Copy link
Member

This enhancement ensures that the tests for 'BackoffManager' run successfully even in resource-constrained environments, making them more resilient and reliable .

…nments.

This commit improves the reliability of BackoffManager unit tests by replacing the use of Thread.sleep() with a more robust approach that manipulates lastRouteProbes to simulate the cooldown period. This enhancement ensures that the tests run successfully even in resource-constrained environments, making them more resilient and reliable.
@arturobernalg
Copy link
Member Author

@ok2c could you please review this? It aims to resolve the issues related to the BackoffManager tests.

Copy link
Member

@ok2c ok2c left a comment

Choose a reason for hiding this comment

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

@arturobernalg Test cases pass for me. I did not look closely at the test source code but I am glad that busy waiting loops are gone now.

@arturobernalg arturobernalg merged commit 5c61b0a into apache:5.4.x Oct 20, 2023
7 checks passed
ok2c pushed a commit that referenced this pull request Dec 6, 2023
…nments. (#494)

This commit improves the reliability of BackoffManager unit tests by replacing the use of Thread.sleep() with a more robust approach that manipulates lastRouteProbes to simulate the cooldown period. This enhancement ensures that the tests run successfully even in resource-constrained environments, making them more resilient and reliable.
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