-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
FlowableWithLatestFrom forgets request #5494
Conversation
Nice find and I'm a bit baffled as FlowableWithLatestFromMany does not have this flaw... |
@@ -261,7 +264,10 @@ public void testNoDownstreamUnsubscribe() { | |||
|
|||
@Test | |||
public void testBackpressure() { | |||
Flowable<Integer> source = Flowable.range(1, 10); | |||
TestScheduler testScheduler = new TestScheduler(); |
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 don't change existing tests but add new ones instead.
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.
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.
|
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