-
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
3.x: onReduceBackpressure internals cleanup #7151
Conversation
akarnokd
commented
Jan 17, 2021
- Simplify empty/non-empty cases.
- Fix cancellation order and wrong fall-through.
- Add deterministic test to cover the reduction cases.
Codecov Report
@@ Coverage Diff @@
## 3.x #7151 +/- ##
============================================
- Coverage 99.55% 99.53% -0.03%
+ Complexity 6709 6707 -2
============================================
Files 745 745
Lines 47327 47327
Branches 6375 6375
============================================
- Hits 47117 47106 -11
- Misses 93 99 +6
- Partials 117 122 +5 Continue to review full report at Codecov.
|
...a/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceWithTest.java
Outdated
Show resolved
Hide resolved
@@ -90,6 +90,30 @@ public void simpleBackpressure() { | |||
ts.assertNotComplete(); | |||
} | |||
|
|||
@Test | |||
public void reduceBackpressuredSync() { |
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.
what is the difference from synchronousDrop
test, maybe just rename it to reduceBacpressuredSync
?
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.
Different request pattern.