-
Notifications
You must be signed in to change notification settings - Fork 7.6k
2.x collect - handle post terminal events #4364
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
2.x collect - handle post terminal events #4364
Conversation
list.add(t); | ||
} | ||
}).subscribe(ts); | ||
ts.assertNoValues(); |
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.
I'd instead throw TestException("Forced failure")
and then simply
Flowable.just(1).collect(...)
.test()
.assertFailureAndMessage(TestException.class, "Forced failure");
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.
Great, I love the .test
method on this!
If you'd make it more concise, that would be great. Also note that most Flowable operators have an Observable counterpart so it would be nice if such changes would contain the fix & tests for both. |
Current coverage is 69.33% (diff: 100%)@@ 2.x #4364 diff @@
==========================================
Files 454 454
Lines 32483 32492 +9
Methods 0 0
Messages 0 0
Branches 5204 5207 +3
==========================================
+ Hits 22504 22529 +25
+ Misses 7776 7764 -12
+ Partials 2203 2199 -4
|
Can do. |
2dddd6c
to
c2fe8e9
Compare
I was trying to avoid this class till now. Will you be able to finish what you wanted till Thursday or may I do it? |
c2fe8e9
to
aba5f4a
Compare
@akarnokd I rebased but io.reactivex.Optional disappeared and I was using it in tests. I'll add it back in internal test package. |
@akarnokd the work is done for |
@akarnokd I'm noticing that RxJava 2.x is really slow to compile (2 minutes) in Eclipse 4.5.1 and 4.6 (say after switching branches). Have you noticed that? Got any tips? |
aba5f4a
to
e9bac96
Compare
Please try without |
e9bac96
to
2931f24
Compare
I've removed |
👍 |
Just looking at moving some recent 1.x bug fixes and tests over to 2.x.
This is my first PR in 2.x so before I proceed adding more tests from 1.x (to this PR) I want to get some feedback on my approach. In particular in the test
testCollectorFailureDoesNotResultInTwoErrorEmissions
is theFlowable
creation method ok?