diff --git a/crates/radicle-node/src/tests/e2e.rs b/crates/radicle-node/src/tests/e2e.rs index 6b642133..a683d117 100644 --- a/crates/radicle-node/src/tests/e2e.rs +++ b/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