swactor/crates/iroh-driver/tests/common/mod.rs
Zachery Aaron Shores-Chmielewski f4dee176c0 refactor: extract iroh-driver crate, drop node example
Move iroh_driver and the relay binary out of distribution into a dedicated
crates/iroh-driver (lib re-exports IrohDriver; relay bin renamed). Remove the node crate
and the single-gpu-inference example; drop the docker/datastream demo. Slim
pipeline-parallel vastai.


Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
2026-06-24 00:10:41 +04:00

31 lines
1 KiB
Rust

//! Shared test config for the iroh-driver integration tests.
#![allow(dead_code)]
use distribution::node::DistributedNodeConfig;
use distribution::registry::RegistryConfig;
use distribution::swim::probe::SwimConfig;
use std::time::Duration;
/// Wall-clock granularity of one gossip round. SWIM is wall-clock driven, so
/// the actor stack advances its clock by `TICK` per round; the old integer
/// tick-count config carries over as multiples of `TICK`.
const TICK: Duration = Duration::from_millis(10);
/// Default test config shared across all integration tests.
pub fn test_config() -> DistributedNodeConfig {
DistributedNodeConfig {
swim: SwimConfig {
probe_interval: TICK,
probe_timeout: TICK * 3,
indirect_probes: 1,
suspicion_timeout: TICK * 5,
dead_reprobe_interval: Duration::ZERO,
..SwimConfig::default()
},
cache_capacity: 100,
registry: RegistryConfig::default(),
metadata_lambda: 3,
}
}
pub mod iroh;