-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve tests by removing sleeps (#1401)
This change improves the reliability of tests in `ConsumerSpec.scala` by replacing the use of `ZIO.sleep` with synchronization primitives such as `Promise` and `Ref`. The previous implementation relied on arbitrary sleep durations to wait for certain conditions, which could lead to non-deterministic behavior and flakiness in the tests. Follow up of #1389.
- Loading branch information
Showing
1 changed file
with
46 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters