-
Notifications
You must be signed in to change notification settings - Fork 3k
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(VirtualTimeScheduler): rework flush so it won't lose actions #4433
fix(VirtualTimeScheduler): rework flush so it won't lose actions #4433
Conversation
Previously VirtualTimeScheduler.flush would lose the action that was on a verge of maxFrames limit which rendered testing of observables that are ticking indefinitely impossible. After the fix the user can set maxFrames, flush, make assertions and repeat the process as many times as needed.
Thanks for the PR. I will have a look at this tomorrow. (I also need to look at what's causing the |
@cartant Hi! Did you have a chance to take a look? |
I looked at it briefly. My concern is that I'll wait to see what others have to say about it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review and make the suggested changes.
Thanks, @baizulin!
@cartant ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@baizulin ... I appreciate that you put in the effort to submit this PR, I understand it's been a while and that can be frustrating. Please try to be respectful of our team members and our time, at this time all RxJS work is done by volunteers in our spare time. |
Description:
Previously VirtualTimeScheduler.flush would lose the action that was on a verge of maxFrames limit which rendered testing of observables that are ticking indefinitely impossible. After the fix the user can set maxFrames, flush, make assertions and repeat the process as many times as needed.
Related issue:
None