summaryrefslogtreecommitdiffstats
path: root/src/simtest/identity.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 14:03:53 +0100
committertv <tv@krebsco.de>2026-10-28 14:03:53 +0100
commit2c0416d53a17400e3c796a6a1e4e196aa5318c56 (patch)
treedc06bcaa8045b8e1f6399c5ef277fa8d4908e91b /src/simtest/identity.rs
parenta5a27eb4699fc5c3fa9fbcc5886f06b88e068bfd (diff)
add support for renaming IDs in the logger
Diffstat (limited to 'src/simtest/identity.rs')
-rw-r--r--src/simtest/identity.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simtest/identity.rs b/src/simtest/identity.rs
index 3d235b0..789b011 100644
--- a/src/simtest/identity.rs
+++ b/src/simtest/identity.rs
@@ -54,6 +54,9 @@ async fn nodes_are_their_node_ids() {
// Its only path, measured by keepalives once there were any.
assert_eq!(destination.paths.len(), 1);
assert_eq!(destination.paths[0].address, "sim:b");
+ // The names that stand for b, through every layer (the logs' aliases use them).
+ assert_eq!(a.transport.identities_of(b.local_id()), ["sim:b"]);
+ assert_eq!(a.transport.identities_of(a.local_id()), ["sim:a"]);
let stats = a.transport.stats();
assert_eq!(stats.identity.unwrap().proven["sim"], 2);
assert!(stats.libp2p.is_none());