This test fails:
Completable.complete()
.andThen{ Completable.complete() }
.test()
.assertComplete()
However this one succeeds:
Completable.complete()
.test()
.assertComplete()
This one also succeeds:
Flowable.just("")
.flatMap { Flowable.just("") }
.test()
.assertComplete()
My understanding is that concating (which is what andThen does?) two completables which complete immediately should complete.
I tried:
- using
awaitForTerminalEvent but it just runs forever in the first case.
.andThen{} instead of .andThen{ Completable.complete() }
Completable.fromCallable instead of Completable.complete() or switching from a Flowable to Completable
This test fails:
However this one succeeds:
This one also succeeds:
My understanding is that concating (which is what andThen does?) two completables which complete immediately should complete.
I tried:
awaitForTerminalEventbut it just runs forever in the first case..andThen{}instead of.andThen{ Completable.complete() }Completable.fromCallableinstead ofCompletable.complete()or switching from aFlowabletoCompletable