diff options
| author | tv <tv@krebsco.de> | 2026-10-28 02:18:01 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 02:19:50 +0100 |
| commit | 24327be7e09c20a9820eac61ba3ac60fb7bdb424 (patch) | |
| tree | f2a1b0b7321c4b1912297fb0725c3ee5800af948 /src/simtest | |
| parent | 3c56f0df5c23b5c8d4bc4cc748cbd18812910ffe (diff) | |
measure paths
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/identity.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/simtest/identity.rs b/src/simtest/identity.rs index b789bda..e93b1da 100644 --- a/src/simtest/identity.rs +++ b/src/simtest/identity.rs @@ -14,6 +14,7 @@ use crate::swarm::bootstrap::Start; use crate::swarm::members; use crate::transport::identity::{WHO_LABEL, signed}; use crate::transport::sim::SimNet; +use crate::transport::stats::PathInfo; use crate::transport::{ Destination, HeadsSummary, IdentityProof, ParsedMessage, Status, Transport, }; @@ -50,6 +51,12 @@ async fn nodes_are_their_node_ids() { address: "sim:b".into(), proven: true, connection: None, + // One path: nothing to choose, so nothing measured. + paths: vec![PathInfo { + address: "sim:b".into(), + rtt_ms: None, + down: false, + }], }) ); let stats = a.transport.stats(); |
