@ncjamieson Hey, I'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 you have any idea why that might be?
Here's the first test I'm trying to write: https://gist.github.com/5c1f12efb8f0e1e75b6fc7c9d480c17c

I suspect it's because I `connect` but never `unsubscribe`. But I don'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: