mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-02-24 07:03:09 +00:00
18 lines
582 B
Rust
18 lines
582 B
Rust
use anyhow::Result;
|
|
use testing_framework_core::scenario::{Deployer, ScenarioBuilder};
|
|
use testing_framework_runner_local::LocalDeployer;
|
|
|
|
pub async fn run_with_env_overrides() -> Result<()> {
|
|
// Uses LOGOS_BLOCKCHAIN_DEMO_* env vars (for example
|
|
// LOGOS_BLOCKCHAIN_DEMO_NODES)
|
|
let mut plan = ScenarioBuilder::with_node_counts(3)
|
|
.with_run_duration(std::time::Duration::from_secs(120))
|
|
.build()?;
|
|
|
|
let deployer = LocalDeployer::default();
|
|
let runner = deployer.deploy(&plan).await?;
|
|
let _handle = runner.run(&mut plan).await?;
|
|
|
|
Ok(())
|
|
}
|