logos-blockchain-testing/examples/doc-snippets/src/dsl_cheat_sheet_expectations.rs
2025-12-16 06:55:44 +01:00

9 lines
371 B
Rust

use testing_framework_core::scenario::ScenarioBuilder;
use testing_framework_workflows::ScenarioBuilderExt;
pub fn expectations_plan() -> testing_framework_core::scenario::Scenario<()> {
ScenarioBuilder::topology_with(|t| t.network_star().validators(1).executors(0))
.expect_consensus_liveness() // Assert blocks are produced continuously
.build()
}