Skip to content

Instantly share code, notes, and snippets.

@steliosfran
Last active July 31, 2021 23:30
Show Gist options
  • Save steliosfran/b02067869630ac2e945679ac9aa0aa31 to your computer and use it in GitHub Desktop.
Save steliosfran/b02067869630ac2e945679ac9aa0aa31 to your computer and use it in GitHub Desktop.
@Nested
@DisplayName("When the first stream throws an error")
inner class FirstStreamError {
private val completable1 = Completable.error(
Throwable("error 1")
).subscribeOn(Schedulers.io())
@Nested
@DisplayName("When the second stream throws an error simultaneously")
inner class SecondStreamError {
private val completable2 = Completable.error(
Throwable("error 2")
).subscribeOn(Schedulers.io())
@Test
fun `then the merged stream does not crash`() {
// TODO
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment