From 2c0416d53a17400e3c796a6a1e4e196aa5318c56 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 14:03:53 +0100 Subject: add support for renaming IDs in the logger --- src/simtest/identity.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/simtest') 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()); -- cgit v1.3.1