mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-03-17 17:33:12 +00:00
Update for main repo changes - this implied many changes in the testing framework code
removal of DA config-related code that was still present because it was required by node code until now
nomos-da-network-core = { workspace = true }
subnetworks-assignations = { workspace = true }
nomos-da-dispersal = { workspace = true }
nomos-da-network-core = { workspace = true }
nomos-da-network-service = { workspace = true }
nomos-da-sampling = { workspace = true }
nomos-da-verifier = { workspace = true }
nomos-ledger = { workspace = true, features = ["serde"] }
removal of the executor node
logos-blockchain-executor = { workspace = true }
21 lines
813 B
Rust
21 lines
813 B
Rust
use std::time::Duration;
|
|
|
|
use testing_framework_core::scenario::{NodeControlCapability, Scenario, ScenarioBuilder};
|
|
use testing_framework_workflows::{ScenarioBuilderExt, workloads::chaos::RandomRestartWorkload};
|
|
|
|
use crate::SnippetResult;
|
|
|
|
pub fn random_restart_plan() -> SnippetResult<Scenario<NodeControlCapability>> {
|
|
ScenarioBuilder::topology_with(|t| t.network_star().validators(2))
|
|
.enable_node_control()
|
|
.with_workload(RandomRestartWorkload::new(
|
|
Duration::from_secs(45), // min delay
|
|
Duration::from_secs(75), // max delay
|
|
Duration::from_secs(120), // target cooldown
|
|
true, // include validators
|
|
))
|
|
.expect_consensus_liveness()
|
|
.with_run_duration(Duration::from_secs(150))
|
|
.build()
|
|
}
|