mirror of
https://github.com/status-im/nim-raft.git
synced 2025-01-12 06:14:16 +00:00
19 lines
641 B
Nim
19 lines
641 B
Nim
# nim-raft
|
|
# Copyright (c) 2023 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
|
# at your option.
|
|
# This file may not be copied, modified, or distributed except according to
|
|
# those terms.
|
|
|
|
import unittest2
|
|
import basic_state_machine
|
|
import ../raft/consensus_state_machine
|
|
import ../raft/types
|
|
|
|
suite "Create and test Consensus State Machine":
|
|
|
|
test "Create Consensus State Machine":
|
|
let csm = ConsensusFsm[RaftNodeState, EventType, RaftNode[SmState, SmCommand], RaftMessageBase].new()
|
|
check csm != nil |