1
0
mirror of synced 2025-01-26 23:50:10 +00:00

23 lines
584 B
Rust
Raw Normal View History

mod fuzz;
use std::panic;
use proptest::prelude::*;
use proptest::test_runner::Config;
use proptest_state_machine::{prop_state_machine, ReferenceStateMachine, StateMachineTest};
use fuzz::sut::ConsensusEngineTest;
prop_state_machine! {
#![proptest_config(Config {
2023-06-26 23:46:24 +09:00
// Only run 10 cases by default to avoid running out of system resources
// and taking too long to finish.
2023-06-26 23:46:24 +09:00
cases: 10,
.. Config::default()
})]
#[test]
2023-06-26 23:46:24 +09:00
// run 100 state transitions per test case
fn consensus_engine_test(sequential 1..30 => ConsensusEngineTest);
}