This commit is contained in:
Raycho Mukelov 2023-11-05 22:38:26 +02:00
parent 92cc9f2ad5
commit 92d9a0d46c
1 changed files with 6 additions and 3 deletions

View File

@ -12,10 +12,13 @@ import ../raft/types
import basic_state_machine
import ../raft/consensus_state_machine
var
csm: ConsensusFsm[RaftNodeState, EventType, RaftNode[SmCommand, SmState], RaftMessageBase[SmCommand, SmState]]
suite "Create and test Consensus State Machine":
test "Create Consensus State Machine":
var
csm = ConsensusFsm[RaftNodeState, EventType, RaftNode[SmCommand, SmState], RaftMessageBase[SmCommand, SmState]].new(rnsFollower)
csm = ConsensusFsm[RaftNodeState, EventType, RaftNode[SmCommand, SmState], RaftMessageBase[SmCommand, SmState]].new
check csm != nil
check csm != nil
# test "Add state transitions / logic conditions":