aboutsummaryrefslogtreecommitdiffstats
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
commit86104f5aa4fa6d8cbc0ea2c5d47481e23c3aff04 (patch)
treee969237e0d7614f884d544e23f675df7209e5c97 /src/simtest/identity.rs
parenteddf62d7a202a0b8b95df28d769e62fe23622b7a (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());