-
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(throttleTime): emit single value with trailing enabled #4564
fix(throttleTime): emit single value with trailing enabled #4564
Conversation
Test if throttleTime emits when only a single value is emitted from the source with leading enabled/disabled and trailing enabled.
…nabled Emit single value with leading disabled, trailing enabled. Closes ReactiveX#2859 and ReactiveX#4491.
Pull Request Test Coverage Report for Build 8355
💛 - Coveralls |
I've reviewed this, but I'd like to make some changes to the test descriptions - some of which are separate to the changes you've made in this PR. I'm unable to push make changes to your PR, so you can either ensure that this box is checked: Or you can apply the following patch that includes the changes:
|
And remove an asDiagram call made with the same argument. Signed-off-by: Matthias Kunnen <[email protected]>
Thank you for the review, I've applied the patch. |
Thank you for the review and merge @benlesh. I'll create another PR addressing other issues with throttleTime later today. |
…#4564) * test(throttleTime): test single value with trailing enabled Test if throttleTime emits when only a single value is emitted from the source with leading enabled/disabled and trailing enabled. * fix(throttleTime): fix single value with leading disabled, trailing enabled Emit single value with leading disabled, trailing enabled. Closes ReactiveX#2859 and ReactiveX#4491. * chore: improve test descriptions And remove an asDiagram call made with the same argument. Signed-off-by: Matthias Kunnen <[email protected]>
throttleTime didn't emit single values when leading was disabled and trailing enabled.
e.g.:
I've added tests to verify this behavior and added another commit to fix it.
Closes #2859 and #4491.
perhaps irrelevant
I have another branch ready to fix some other problems related to throttleTime which I will create a PR for when this one is merged.