Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate call to child FSM factory function in a config object #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joepie91
Copy link

@joepie91 joepie91 commented May 6, 2018

Original bugcase I wrote for this: https://git.cryto.net/joepie91/machina-factory-bugcase

New tests are included. It still doesn't quite behave as I'd expect - namely, it creates a new child FSM for every access attempt, including every child handle operation, while I'd only expect it to create one upon transitioning to the parent state that contains it - but I'm still investigating that as a separate bug.

EDIT: I've also added some cleanup to the event handling tests on the machina object, as the error-throwing callback was interfering with the tests I added. Presumably that issue may reoccur elsewhere as well, if attached events are not reliably removed after they've been tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant