2025-12-16 06:55:44 +01:00
|
|
|
use anyhow::Result;
|
|
|
|
|
use testing_framework_core::scenario::{Deployer, ScenarioBuilder};
|
|
|
|
|
use testing_framework_runner_local::LocalDeployer;
|
|
|
|
|
use testing_framework_workflows::ScenarioBuilderExt;
|
|
|
|
|
|
|
|
|
|
pub async fn execution() -> Result<()> {
|
2026-01-25 10:11:16 +02:00
|
|
|
let mut plan = ScenarioBuilder::topology_with(|t| t.network_star().validators(1))
|
2025-12-16 06:55:44 +01:00
|
|
|
.expect_consensus_liveness()
|
2025-12-18 22:48:45 +01:00
|
|
|
.build()?;
|
2025-12-16 06:55:44 +01:00
|
|
|
|
|
|
|
|
let deployer = LocalDeployer::default();
|
|
|
|
|
let runner = deployer.deploy(&plan).await?;
|
|
|
|
|
let _handle = runner.run(&mut plan).await?;
|
|
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|