summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/transport/libp2p.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/libp2p.rs b/src/transport/libp2p.rs
index bfd9b52..ba97fb5 100644
--- a/src/transport/libp2p.rs
+++ b/src/transport/libp2p.rs
@@ -1955,6 +1955,8 @@ mod tests {
book.location(&both).map(|address| address.to_string()),
Some("/ip4/10.0.0.3/tcp/1".to_owned())
);
+ let connections = book.stats().connections;
+ assert_eq!((connections.direct, connections.relayed), (1, 2));
// Of several, the oldest direct one stays; a relayed one only without a direct.
connect(&mut book, both, false);
assert_eq!(
@@ -1965,7 +1967,5 @@ mod tests {
]
);
assert!(book.duplicates(&relayed_only).is_empty());
- let connections = book.stats().connections;
- assert_eq!((connections.direct, connections.relayed), (1, 2));
}
}