-
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(TestScheduler): flush expectations correctly #3901
Conversation
There is one thing I'm not sure about. The original change that introduced the bug (2d5b3b2#diff-a65b432aff1fe2954db903fd7fe6b322R141) changed the code so that It would be possible to fix the issue without modifying the |
@TPReal After I created the PR, I looked to see if you had any commits in this or other repos from which I could obtain your email address - so that I could credit you with the PR's commits - but I couldn't find any. However, I just noticed that your email address is on your GitHub profile page, so I'll make you the author in a short while - as it's all your work. |
I don't recall specifics unfortunately. Presumably there was an issue with the previous implementation, but it's not clear why. You solution appears fine, and if not, someone will report and we can fix appropriately. |
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
Thanks for the quick fix, and for the credit! |
Interestingly, this change broke a test that I had in Prior to this change, that wasn't a problem, as each ready test was removed from the array before the assertion was performed. So the additional call to However, I doubt this is going to be an issue for any situation in which the |
Description:
Adds a failing test for the
TestScheduler
and applies the fix from #3898.Related issue (if exists): #3898