Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: relax converge criteria
Fintan Halpenny committed 2 years ago
commit 76c969c7557c7b99e2a4e79b058856118ff30a05
parent 070e912b3ed9b5bef35ff6c9cdb723c1daa2fb04
1 file changed +2 -1
modified radicle-node/src/test/environment.rs
@@ -511,11 +511,12 @@ pub fn converge<'a, G: Signer + cyphernet::Ecdh + 'static>(
            let routing = node.routing();
            let routes = BTreeSet::from_iter(routing);

-
            if routes == all_routes {
+
            if routes.is_superset(&all_routes) {
                log::debug!(target: "test", "Node {} has converged", node.id);
                return false;
            } else {
                log::debug!(target: "test", "Node {} has {:?}", node.id, routes);
+
                log::debug!(target: "test", "All routes {:?}", all_routes);
            }
            true
        });