-
Notifications
You must be signed in to change notification settings - Fork 974
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
Refactor ExponentialBackoffManager Tests to Remove Thread.sleep(). #495
Refactor ExponentialBackoffManager Tests to Remove Thread.sleep(). #495
Conversation
I just saw this error with the latest code in one of my CI runs. Could you please take a look at it as well?
|
d45d68d
to
aa7807e
Compare
HI @ok2c TY |
@arturobernalg What about TestLinearBackoffManager? |
6bcd8b4
to
5d40de1
Compare
@arturobernalg I am afraid the test case still fails intermittently with your latest changes. We can leave it for now and see how often the failure occurs (if at all) |
… to Remove Thread.sleep(). This commit enhances the ExponentialBackoffManager and TestLinearBackoffManager unit tests by replacing the use of Thread.sleep() with direct manipulation of internal state to simulate the cooldown period. This change improves test reliability and ensures consistent behavior in resource-constrained environments.
5d40de1
to
3428dc4
Compare
… to Remove Thread.sleep(). (#495) This commit enhances the ExponentialBackoffManager and TestLinearBackoffManager unit tests by replacing the use of Thread.sleep() with direct manipulation of internal state to simulate the cooldown period. This change improves test reliability and ensures consistent behavior in resource-constrained environments.
This PR refactors the unit tests for
ExponentialBackoffManager
to remove the use of Thread.sleep(), making the tests more reliable and faster.