Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node/e2e: Fix test_non_fastforward_identity_doc
✗ CI failure Adrian Duke committed 2 months ago
commit e7b792a7ae971bb09aefa414c090992cd9042462
parent 63b17b875619ad173ab0dd6eb8cc156bdf321f36
3 failed (3 total) View logs
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