Skip to content

2.1.2 Completable with andThen never completes #5551

@micHar

Description

@micHar

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions