@ncjamieson Hey, I& #39;m trying to write marble tests (with rxjs-marbles) for this `createDataCron` function, but everything I try just ends up in an infinite loop. https://twitter.com/OliverJAsh/status/1245647179596697600

Do">https://twitter.com/OliverJAs... you have any idea why that might be?
Here& #39;s the first test I& #39;m trying to write: https://gist.github.com/5c1f12efb8f0e1e75b6fc7c9d480c17c

I">https://gist.github.com/5c1f12efb... suspect it& #39;s because I `connect` but never `unsubscribe`. But I don& #39;t know when to unsubscribe.

I tried doing it in an `afterEach` to no avail…
You can follow @OliverJAsh.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: