You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During a recent build in CI I encountered a unit test failure. I noticed that pluggable / test time sources aren't being used in thees unit tests which may lead to flakes depending on how slowly the unit tests are executed. It would be best to use a test time source instead, it will also speed up the tests because they won't have to sleep.
The issue you're experiencing with flaky unit tests in flytestdlib/cache is due to the lack of pluggable/test time sources, leading to non-deterministic behavior. This can be addressed by using EventuallyWithT from the testify package to ensure conditions are met within a specified time frame, as seen in the recent pull request #5438.
Would you like more details on how to implement this fix?
Describe the bug
During a recent build in CI I encountered a unit test failure. I noticed that pluggable / test time sources aren't being used in thees unit tests which may lead to flakes depending on how slowly the unit tests are executed. It would be best to use a test time source instead, it will also speed up the tests because they won't have to sleep.
Expected behavior
The unit tests pass and are deterministic.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: