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
With 1.x this test pass:
@Test public void subscriberShouldBeUnsubscribed() { rx.observers.TestSubscriber subscriber = new rx.observers.TestSubscriber(); rx.Observable.just("").subscribe(subscriber); subscriber.awaitTerminalEvent(); subscriber.assertNoErrors(); subscriber.assertCompleted(); subscriber.assertUnsubscribed(); }
But with 2.x this test does not pass:
@Test public void observerShouldBeDisposed() { TestObserver observer = new TestObserver(); Observable.just("").subscribe(observer); observer.awaitTerminalEvent(); observer.assertNoErrors(); observer.assertComplete(); assertThat(observer.isDisposed(), is(true)); }
I think that dispose is similar to unsubscribe (but maybe I'm wrong). So I was wondering if this is the expected behaviour.
Thanks.
The text was updated successfully, but these errors were encountered:
It's a small inconsistency. I'll fix that in my next cleanup/coverage PR.
Sorry, something went wrong.
Closing via 1145819
@akarnokd, with RxJava 2.0.7 the test still fails:
@Test public void observerShouldBeDisposed() { TestObserver observer = new TestObserver(); Observable.just("").subscribe(observer); observer.awaitTerminalEvent(); observer.assertNoErrors(); observer.assertComplete(); assertTrue(observer.isDisposed()); }
There was a problem with that change and has been reverted in #4873.
No branches or pull requests
With 1.x this test pass:
But with 2.x this test does not pass:
I think that dispose is similar to unsubscribe (but maybe I'm wrong). So I was wondering if this is the expected behaviour.
Thanks.
The text was updated successfully, but these errors were encountered: