Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
node/e2e: Fix test_non_fastforward_identity_doc
Adrian Duke committed 2 months ago
commit c96aea0699a79dfe6e2111ae4d0961454b27e036
parent 832598c
1 file changed +9 -1
modified crates/radicle-node/src/tests/e2e.rs
@@ -1563,7 +1563,7 @@ fn test_fetch_emits_canonical_ref_update() {
}

#[test]
-
fn test_non_fastword_identity_doc() {
+
fn test_non_fastforward_identity_doc() {
    use radicle::identity::Identity;

    let tmp = tempfile::tempdir().unwrap();
@@ -1591,6 +1591,12 @@ fn test_non_fastword_identity_doc() {
    eve.connect(&bob);
    eve.connect(&alice_laptop);

+
    // Due to permissive relaying, we need to lock down the scope for the RID.
+
    //
+
    // See: [`radicle-protocol::service::Service::relay()`] and
+
    //      [`radicle-protocol::service::Service::relay_announcement()`]
+
    alice.handle.seed(rid, Scope::Followed).unwrap();
+

    // Bob and Eve have the same state for the repository
    bob.handle.seed(rid, Scope::Followed).unwrap();
    bob.handle.fetch(rid, alice.id, DEFAULT_TIMEOUT).unwrap();
@@ -1632,6 +1638,8 @@ fn test_non_fastword_identity_doc() {
        (prev, rev)
    };

+
    assert!(!has_issue(&alice, &issue));
+

    // Bob fetches from Alice and we see the identity document was updated.
    //
    // Bob does not have the issue because Alice does not have the updates from