diff options
Diffstat (limited to 'src/simtest/identity.rs')
| -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(); |
