-
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): fix trailing #4491
Conversation
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Travis CI build is failing as of 68245a0. Here's the output:
|
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.
If this PR addresses a bug, could you please add a failing test that passes when this change in made? And the failing tests will need to be addressed. If this change effects test failures, it's going to be a breaking, behavioral change.
Having trouble making a test for { leading: true, trailing true } because an active task needs to be flushed on _next, i think. Maybe the scheduled task is queued for execution after _next in the tests. |
…ng: true, trailing: true }'
…nabled Emit single value with leading disabled, trailing enabled. Closes ReactiveX#2859 and ReactiveX#4491.
* 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 #2859 and #4491. * chore: improve test descriptions And remove an asDiagram call made with the same argument. Signed-off-by: Matthias Kunnen <matthias.kunnen@gmail.com>
This PR can be closed since the issue has been addressed in PR #4564. |
…#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 <matthias.kunnen@gmail.com>
Description:
Emitting a trailing value should be counted as emitting a value.
Commit that introduced bug
Related issue (if exists):
#2859