You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Sven Slootweg 9317060f97 Add complexity for testing out switching back and forth between child FSMs 6 years ago
.gitignore Add complexity for testing out switching back and forth between child FSMs 6 years ago
README.md Initial commit 6 years ago
index.js Add complexity for testing out switching back and forth between child FSMs 6 years ago
package.json Initial commit 6 years ago

README.md

machina-factory-bugcase

A demonstration of a bug in machina v2.0.2, where a child FSM factory is called multiple times when specified as part of a config object.

What should happen:

(fsm.0) Parent state 1 reached
Creating child
(fsm.1) Child state A reached
(fsm.0) Parent state 2 reached
Creating child
(fsm.2) Child state A reached
(fsm.2) Child state B reached

What happens instead:

(fsm.0) Parent state 1 reached
Creating child
(fsm.1) Child state A reached
Creating child
(fsm.2) Child state A reached
(fsm.0) Parent state 2 reached
Creating child
(fsm.3) Child state A reached
Creating child
(fsm.4) Child state A reached
(fsm.4) Child state B reached