Replies: 1 comment 3 replies
-
@johankool Can you share a snippet of the test in question and explain what the expectation was? E.g. was your test sending later actions that should have cancelled the effect but the effect was still not cancelled? The hope with the change was that cancellation should be more reliable, and a consequence of that change was I mainly want to figure out if this behavior is a bug or not, so if you have time to isolate the behavior in a test, that would be super helpful! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
With the release of TCA version 0.33.1 my tests started failing with this error:
That this could happen was pointed out in the release notes, but I had a hard time figuring out what I did wrong.
It seemed to me that I was making all effects ".cancellable" as per the last point in the error message.
It turns out the timer effect uses its id to be cancellable, but if you then make it cancellable again and reuse the same id, it doesn't get cancelled at all.
I don't think this is an issue with TCA, though perhaps the wording can be a bit confusing as it talks about timer effects and making them ".cancellable", whereas you shouldn't. I figured mentioning it here in case anybody else runs into this too.
Another potentially useful improvement would be if the id of the effect that still runs is mentioned in the message. This action merged a couple of effects, so it would be great to know which one was the culprit.
Beta Was this translation helpful? Give feedback.
All reactions