Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Fix E2E tests
Alexis Sellier committed 3 years ago
commit df9346fefbde0a2b10f21d6c0a0b2c9c4b890bc2
parent 3bedb4438e511faec67b14e199cc27a24e5e2ce5
1 file changed +4 -4
modified radicle-node/src/tests/e2e.rs
@@ -10,7 +10,7 @@ use radicle::git::refname;
use radicle::identity::Id;
use radicle::node::Handle;
use radicle::profile::Home;
-
use radicle::storage::WriteStorage;
+
use radicle::storage::{ReadStorage, WriteStorage};
use radicle::test::fixtures;
use radicle::Storage;
use radicle::{assert_matches, rad};
@@ -126,10 +126,10 @@ fn check<'a>(nodes: impl IntoIterator<Item = &'a Node>) -> BTreeSet<(Id, NodeId)

    // First build the set of all routes.
    for node in &nodes {
-
        let routing = node.handle.routing().unwrap();
+
        let inv = node.storage.inventory().unwrap();

-
        for (rid, seed) in routing.try_iter() {
-
            all_routes.insert((rid, seed));
+
        for rid in inv {
+
            all_routes.insert((rid, node.id));
        }
    }