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:
parent
2011f2b06e
commit
cd4c44986a
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue