-
Notifications
You must be signed in to change notification settings - Fork 49
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
Reactive streams TCK tests are too slow #938
Comments
Idk why |
as far as i can tell, |
…939) Originally, `Async.sleep` was used to mimic the real-life delay of a publisher/subscriber, but in the `reactive-streams-tck` test cases, it provides little to no benefit while significantly slowing down the overall test. Additionally, a quick look at `fs2` and `zio` shows that they also do not use sleep in their test cases. This PR takes it a step further by removing `Async.sleep` from all `kyo-reactive-stream` test cases. Since this feature is primarily about correctly combining effects, I believe that if individual components have been thoroughly tested, we can proceed with just the minimal testing. Furthermore, because `StreamSubscriber` has two strategies, I initially duplicated the tests for both. However, I think it suffices to randomly choose one strategy for each test in the suite. Overall, on my MacBook M3, the old tests took `1 minute and 37 seconds` to run, while the new tests complete in just `34 seconds`. Aim to resolve #938
A quick test suite is an important design principle of Kyo's codebase. The new tests introduced by #896 are taking much longer than all the other tests combined. We need to find a reliable way to execute them faster. cc/ @HollandDM
The text was updated successfully, but these errors were encountered: