We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not sure this is a correct test, let me know if I can provide any extra information.
private Subscriber<? super Object> subscriber; @Test public void thisTestPasses() throws Exception { final Subscription subscribe = Observable.create(subscriber -> { this.subscriber = subscriber; }).subscribeOn(Schedulers.io()).flatMap(o -> Observable.just("")).toSingle().subscribe(); subscribe.unsubscribe(); assertThat(subscriber.isUnsubscribed()).isTrue(); } @Test public void thisTestFails() throws Exception { final Subscription subscribe = Observable.create(subscriber -> { this.subscriber = subscriber; }).subscribeOn(Schedulers.io()).toSingle().flatMap(o -> Single.just("")).subscribe(); subscribe.unsubscribe(); assertThat(subscriber.isUnsubscribed()).isTrue(); }
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Indeed, this is a bug in Single.flatMap. Fix PR in #3941 .
Single.flatMap
Sorry, something went wrong.
4a6441c
No branches or pull requests
Not sure this is a correct test, let me know if I can provide any extra information.
The text was updated successfully, but these errors were encountered: