Skip to content

2.x: TestObserver shouldn't clear the upstream disposable on terminated#4873

Merged
akarnokd merged 1 commit intoReactiveX:2.xfrom
akarnokd:TestObserverFix
Nov 22, 2016
Merged

2.x: TestObserver shouldn't clear the upstream disposable on terminated#4873
akarnokd merged 1 commit intoReactiveX:2.xfrom
akarnokd:TestObserverFix

Conversation

@akarnokd
Copy link
Member

TestObserver replaced the upstream's Disposable with the disposed-sentinel when it got a terminal event (unlike TestSubscriber) and there seems to be a need for triggering dispose in some upstream even after that. This PR changes this behavior and also updates unit tests that expect isDisposed() true without actually calling dispose().

Related #4872

@akarnokd akarnokd added this to the 2.0 backlog milestone Nov 22, 2016
@codecov-io
Copy link

Current coverage is 95.75% (diff: 100%)

Merging #4873 into 2.x will increase coverage by 0.03%

@@                2.x      #4873   diff @@
==========================================
  Files           581        581          
  Lines         37214      37212     -2   
  Methods           0          0          
  Messages          0          0          
  Branches       5601       5601          
==========================================
+ Hits          35624      35634    +10   
+ Misses          656        650     -6   
+ Partials        934        928     -6   

Powered by Codecov. Last update 37bde8c...d7e8e4f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants