mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
node: Relax routes_to test function
We were being too strict by requiring that no routes existed that weren't passed into the function. This isn't really useful for testing, since we're more interested in checking that certain routes are there, rather than testing that *only* those routes are there.
This commit is contained in:
@@ -227,10 +227,7 @@ impl<G: Signer + cyphernet::Ecdh> NodeHandle<G> {
|
||||
|
||||
for (rid, nid) in self.routing() {
|
||||
if !remaining.remove(&(rid, nid)) {
|
||||
panic!(
|
||||
"Node::routes_to: unexpected route for {}: ({rid}, {nid})",
|
||||
self.id
|
||||
);
|
||||
log::debug!(target: "test", "Found unexpected route for {}: ({rid}, {nid})", self.id);
|
||||
}
|
||||
}
|
||||
if remaining.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user