From 445bafbfcfcdf3761fd065dbc8b5073f1a31c1d1 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 2 Nov 2026 23:34:03 +0100 Subject: add announce unreachable test --- src/simtest/mod.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/simtest/mod.rs') diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index 76583de..808f44f 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -12,6 +12,7 @@ mod deltas; mod identity; mod links; +mod relay; mod remakes; mod soak; mod timing; @@ -121,6 +122,18 @@ impl Sim { schemes: &[&'static str], seeds: &[&str], start: Start, + ) -> AppState { + self.start_on_with(id, schemes, seeds, start, |_| {}) + } + + /// [`start_on`](Self::start_on), with the configuration adjusted first. + pub(crate) fn start_on_with( + &self, + id: &str, + schemes: &[&'static str], + seeds: &[&str], + start: Start, + adjust: impl FnOnce(&mut NodeConfig), ) -> AppState { assert!( self.identity, @@ -136,6 +149,7 @@ impl Sim { let key = Arc::new(sim_key(id)); self.start_node(id, first, seeds, start, move |config| { config.identity = Some(IdentityConfig { key, scheme, more }); + adjust(config); }) } -- cgit v1.3.1