FlowableWithLatestFrom forgets request#5494
Merged
akarnokd merged 4 commits intoReactiveX:2.xfrom Jul 18, 2017
Merged
Conversation
Member
|
Nice find and I'm a bit baffled as FlowableWithLatestFromMany does not have this flaw... |
akarnokd
requested changes
Jul 17, 2017
| @Test | ||
| public void testBackpressure() { | ||
| Flowable<Integer> source = Flowable.range(1, 10); | ||
| TestScheduler testScheduler = new TestScheduler(); |
Member
There was a problem hiding this comment.
Please don't change existing tests but add new ones instead.
Contributor
Author
There was a problem hiding this comment.
ok, I have added a test, but I still had to modify testBackpressure because it was relying on the fact that the source would not get more request if the other stream does not emit data.
Codecov Report
@@ Coverage Diff @@
## 2.x #5494 +/- ##
============================================
- Coverage 96.11% 96.03% -0.08%
+ Complexity 5798 5797 -1
============================================
Files 631 631
Lines 41297 41299 +2
Branches 5743 5743
============================================
- Hits 39692 39663 -29
- Misses 632 654 +22
- Partials 973 982 +9
Continue to review full report at Codecov.
|
akarnokd
approved these changes
Jul 18, 2017
This was referenced Jul 18, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The following scenario did not work with FlowableWithLatestFrom:
Flowable<?> result = source.combineWithLatest(other, someCombiner)
expected result: result stream emits the combined event
actual result: result stream does not emit anything