You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the ! marble is scheduled, only the expected observable will be unsubscribed and not the actual observable. This seems to be because the implementation shares the same subscription variable, so when expected is subscribed it overwrites the subscription from actual. Which means any custom teardown logic won't be run for actual.
Expected behavior
I'd expect the following asserts to be synonymous:
Describe the bug
When using expectObservable from the TestScheduler with subscription marbles:
When the
!
marble is scheduled, only theexpected
observable will be unsubscribed and not theactual
observable. This seems to be because the implementation shares the same subscription variable, so whenexpected
is subscribed it overwrites the subscription fromactual
. Which means any custom teardown logic won't be run foractual
.Expected behavior
I'd expect the following asserts to be synonymous:
Reproduction code
Reproduction URL
https://stackblitz.com/edit/stackblitz-starters-bs79vc?file=TestScheduler.spec.ts
Version
8.0.0-alpha.12 and 7.8.1
Environment
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: