-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning on TestStateMachine (#23744)
This warning was bugging me, so I fixed it. That being said, this warning does point to a strange circular dependency between the transitions and the state machine where the state machine owns transitions, but transitions can post events to the state machine. It was abstracted out somewhat by the virtual Context interface, but that still leaves us with this circular dependency. A better solution would be to fix this circular dependency. One solution would be to have the transitions table either return a state or an event, and have the state machine dispatch to itself rather than having the transitions hold a reference back to the state machine. Then the transitions would only need to know about states and events.
- Loading branch information
Showing
1 changed file
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters